aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification/notification.js
diff options
context:
space:
mode:
authorkPherox <admin@mail.kr-kp.com>2019-12-11 04:02:25 +0900
committerkPherox <admin@mail.kr-kp.com>2019-12-11 04:02:25 +0900
commit31aa177eea8f2e50e1802d1dd51a8470199b6bcb (patch)
tree82b0ffc74e067a532669acda1472d4c5fd257fa6 /src/components/notification/notification.js
parent6af870cd9069a8fc45b7684d264656dad0cf4a70 (diff)
Fix target account link
Diffstat (limited to 'src/components/notification/notification.js')
-rw-r--r--src/components/notification/notification.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index 7d46eb5a..93edf2fa 100644
--- a/src/components/notification/notification.js
+++ b/src/components/notification/notification.js
@@ -55,6 +55,18 @@ const Notification = {
userProfileLink () {
return this.generateUserProfileLink(this.user)
},
+ targetUserInStore () {
+ return this.$store.getters.findUser(this.notification.target.id)
+ },
+ targetUser () {
+ if (this.targetUserInStore) {
+ return this.targetUserInStore
+ }
+ return this.notification.target
+ },
+ targetUserProfileLink () {
+ return this.generateUserProfileLink(this.targetUser)
+ },
needMute () {
return this.user.muted
}