aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification/notification.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-04-10 17:28:42 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-04-10 17:28:42 +0000
commit84505e01f5f6b2d0ba462cdccefcedc631ab09ba (patch)
treeb49893d5b9087d8eb8a92d8b54eca79b822c6a53 /src/components/notification/notification.js
parentd94a7b63185ce72bd9a61ebc7f6141178176fc4e (diff)
parent76cd01e99b832944c5f6faff3167935346438b53 (diff)
Merge branch 'issue-436-mastoapi-notifications' into 'develop'
#436: integrate mastoAPI notifications Closes #436 See merge request pleroma/pleroma-fe!678
Diffstat (limited to 'src/components/notification/notification.js')
-rw-r--r--src/components/notification/notification.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index 6aa6101f..67d54724 100644
--- a/src/components/notification/notification.js
+++ b/src/components/notification/notification.js
@@ -28,21 +28,21 @@ const Notification = {
},
computed: {
userClass () {
- return highlightClass(this.notification.action.user)
+ return highlightClass(this.notification.from_profile)
},
userStyle () {
const highlight = this.$store.state.config.highlight
- const user = this.notification.action.user
+ const user = this.notification.from_profile
return highlightStyle(highlight[user.screen_name])
},
userInStore () {
- return this.$store.getters.findUser(this.notification.action.user.id)
+ return this.$store.getters.findUser(this.notification.from_profile.id)
},
user () {
if (this.userInStore) {
return this.userInStore
}
- return {}
+ return this.notification.from_profile
}
}
}