aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification/notification.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2019-04-01 22:42:06 +0300
committershpuld <shp@cock.li>2019-04-01 22:42:06 +0300
commit46de457f50416d0c8f37a833356b0b7ea643a53f (patch)
tree2af3e96da21aee1e06f0eb6beff82c24770b7296 /src/components/notification/notification.js
parent2879495b8ab16a07d337965871e951f660fc1815 (diff)
parentdf366a586d6549b41d5537c57eb51c5f0f54a641 (diff)
Merge branch 'develop' into feature/mobile-improvements-3
Diffstat (limited to 'src/components/notification/notification.js')
-rw-r--r--src/components/notification/notification.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index fe5b7018..42a48f3f 100644
--- a/src/components/notification/notification.js
+++ b/src/components/notification/notification.js
@@ -31,6 +31,15 @@ const Notification = {
const highlight = this.$store.state.config.highlight
const user = this.notification.action.user
return highlightStyle(highlight[user.screen_name])
+ },
+ userInStore () {
+ return this.$store.getters.findUser(this.notification.action.user.id)
+ },
+ user () {
+ if (this.userInStore) {
+ return this.userInStore
+ }
+ return {}
}
}
}