From f574fe0055e9930dffee673874ee83c6f31d0164 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Tue, 18 Oct 2022 08:05:17 +0800 Subject: [PATCH] feat(web/blog): show reply_user in system msg --- web/app/controllers/subdomain/blog/blog.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/app/controllers/subdomain/blog/blog.php b/web/app/controllers/subdomain/blog/blog.php index 23b6cc9..dba75b4 100644 --- a/web/app/controllers/subdomain/blog/blog.php +++ b/web/app/controllers/subdomain/blog/blog.php @@ -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'] . ' 的评论里提到你:点击此处查看'; + $content = $user_link . ' 在博客 ' . $blog['title'] . ' 的评论里提到你:点击此处查看'; sendSystemMsg($referrer, '有人提到你', $content); } if ($blog['poster'] !== $myUser['username']) { - $content = '有人回复了您的博客 ' . $blog['title'] . ' :点击此处查看'; + $content = $user_link . ' 回复了您的博客 ' . $blog['title'] . ' :点击此处查看'; sendSystemMsg($blog['poster'], '博客新回复通知', $content); }