mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 20:08:42 +00:00
feat(web/blog): show reply_user in system msg
This commit is contained in:
parent
c78032628c
commit
f574fe0055
@ -62,14 +62,15 @@
|
|||||||
$page = floor($rank / 20) + 1;
|
$page = floor($rank / 20) + 1;
|
||||||
|
|
||||||
$uri = getLongTablePageUri($page) . '#' . "comment-{$comment_id}";
|
$uri = getLongTablePageUri($page) . '#' . "comment-{$comment_id}";
|
||||||
|
$user_link = getUserLink($myUser['username']);
|
||||||
|
|
||||||
foreach ($referrers as $referrer) {
|
foreach ($referrers as $referrer) {
|
||||||
$content = '有人在博客 ' . $blog['title'] . ' 的评论里提到你:<a href="' . $uri . '">点击此处查看</a>';
|
$content = $user_link . ' 在博客 ' . $blog['title'] . ' 的评论里提到你:<a href="' . $uri . '">点击此处查看</a>';
|
||||||
sendSystemMsg($referrer, '有人提到你', $content);
|
sendSystemMsg($referrer, '有人提到你', $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($blog['poster'] !== $myUser['username']) {
|
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);
|
sendSystemMsg($blog['poster'], '博客新回复通知', $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user