feat(web/blog): show reply_user in system msg

This commit is contained in:
Baoshuo Ren 2022-10-18 08:05:17 +08:00
parent c78032628c
commit f574fe0055
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -62,14 +62,15 @@
$page = floor($rank / 20) + 1;
$uri = getLongTablePageUri($page) . '#' . "comment-{$comment_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);
}
if ($blog['poster'] !== $myUser['username']) {
$content = '有人回复了您的博客 ' . $blog['title'] . ' <a href="' . $uri . '">点击此处查看</a>';
$content = $user_link . ' 回复了您的博客 ' . $blog['title'] . ' <a href="' . $uri . '">点击此处查看</a>';
sendSystemMsg($blog['poster'], '博客新回复通知', $content);
}