fix(web): f574fe0055
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-10-18 09:04:31 +08:00
parent d90699d456
commit ab51b193f4
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -127,9 +127,10 @@
$page = floor($rank / 20) + 1;
$uri = getLongTablePageUri($page) . '#' . "comment-{$reply_id}";
$user_link = getUserLink($myUser['username']);
foreach ($referrers as $referrer) {
$content = '有人在博客 ' . $blog['title'] . ' 的评论里提到你:<a href="' . $uri . '">点击此处查看</a>';
$content = $user_link . ' 在博客 ' . $blog['title'] . ' 的评论里提到你:<a href="' . $uri . '">点击此处查看</a>';
sendSystemMsg($referrer, '有人提到你', $content);
}
@ -137,12 +138,12 @@
$notified = array();
if ($parent['poster'] !== $myUser['username']) {
$notified[] = $parent['poster'];
$content = '有人回复了您在博客 ' . $blog['title'] . ' 下的评论 <a href="' . $uri . '">点击此处查看</a>';
$content = $user_link . ' 回复了您在博客 ' . $blog['title'] . ' 下的评论<a href="' . $uri . '">点击此处查看</a>';
sendSystemMsg($parent['poster'], '评论新回复通知', $content);
}
if ($blog['poster'] !== $myUser['username'] && !in_array($blog['poster'], $notified)) {
$notified[] = $blog['poster'];
$content = '有人回复了您的博客 ' . $blog['title'] . ' <a href="' . $uri . '">点击此处查看</a>';
$content = $user_link . ' 回复了您的博客 ' . $blog['title'] . ' <a href="' . $uri . '">点击此处查看</a>';
sendSystemMsg($blog['poster'], '博客新回复通知', $content);
}