mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-09 23:08:42 +00:00
fix(web): f574fe0055
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d90699d456
commit
ab51b193f4
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user