From e2053c0428bb9223cf5c5abeba73cdfd2d34424b Mon Sep 17 00:00:00 2001
From: Tim <135014430+nagisa77@users.noreply.github.com>
Date: Thu, 31 Jul 2025 13:13:45 +0800
Subject: [PATCH] feat: refine USER_ACTIVITY notifications
---
open-isle-cli/src/views/MessagePageView.vue | 41 +++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/open-isle-cli/src/views/MessagePageView.vue b/open-isle-cli/src/views/MessagePageView.vue
index 5c4fd9740..93b7c64d2 100644
--- a/open-isle-cli/src/views/MessagePageView.vue
+++ b/open-isle-cli/src/views/MessagePageView.vue
@@ -115,6 +115,38 @@
+
+
+ 你关注的
+
+ {{ item.comment.author.username }}
+
+ 在 对评论
+
+ {{ sanitizeDescription(item.parentComment.content) }}
+
+ 回复了
+
+ {{ sanitizeDescription(item.comment.content) }}
+
+
+
+
+
+ 你关注的
+
+ {{ item.comment.author.username }}
+
+ 在文章
+
+ {{ sanitizeDescription(item.post.title) }}
+
+ 下面评论了
+
+ {{ sanitizeDescription(item.comment.content) }}
+
+
+
@@ -379,6 +411,15 @@ export default {
router.push(`/users/${n.comment.author.id}`)
}
})
+ } else if (n.type === 'USER_ACTIVITY') {
+ notifications.value.push({
+ ...n,
+ src: n.comment.author.avatar,
+ iconClick: () => {
+ markRead(n.id)
+ router.push(`/users/${n.comment.author.id}`)
+ }
+ })
} else if (n.type === 'USER_FOLLOWED' || n.type === 'USER_UNFOLLOWED') {
notifications.value.push({
...n,