diff options
| author | Maksim Pechnikov <parallel588@gmail.com> | 2020-01-06 15:47:36 +0300 |
|---|---|---|
| committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-01-06 15:47:36 +0300 |
| commit | 2810f10d1415df6358cdbe4af75f44fb8fa61358 (patch) | |
| tree | 9cd3fd24478bb999ec73abdc90ed31ad9be3f068 /src/components/notification/notification.js | |
| parent | 50bb8865c57d098a66aafedf9c64878d8e39dba0 (diff) | |
| parent | ad97e03b59783d655c7d414e27b0bce41a6a4ee6 (diff) | |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma-fe into develop
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 } |
