diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2020-01-03 10:16:42 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2020-01-03 10:16:42 +0000 |
| commit | ad97e03b59783d655c7d414e27b0bce41a6a4ee6 (patch) | |
| tree | 817b578e53b884c4b5facd63c166b522f59a8978 /src/components/notification/notification.js | |
| parent | 1a82a00a2b45041c35b72ab16ee34c120341b652 (diff) | |
| parent | 215662afdee3935f66e5fbd73260e2039f5216de (diff) | |
Merge branch 'fix-move-type-notification' into 'develop'
Fix for move type notification
See merge request pleroma/pleroma-fe!1026
Diffstat (limited to 'src/components/notification/notification.js')
| -rw-r--r-- | src/components/notification/notification.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index 7d46eb5a..e7bd769e 100644 --- a/src/components/notification/notification.js +++ b/src/components/notification/notification.js @@ -43,18 +43,18 @@ const Notification = { const user = this.notification.from_profile return highlightStyle(highlight[user.screen_name]) }, - userInStore () { - return this.$store.getters.findUser(this.notification.from_profile.id) - }, user () { - if (this.userInStore) { - return this.userInStore - } - return this.notification.from_profile + return this.$store.getters.findUser(this.notification.from_profile.id) }, userProfileLink () { return this.generateUserProfileLink(this.user) }, + targetUser () { + return this.$store.getters.findUser(this.notification.target.id) + }, + targetUserProfileLink () { + return this.generateUserProfileLink(this.targetUser) + }, needMute () { return this.user.muted } |
