aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-04-21 23:27:51 +0300
committerShpuld Shpuldson <shp@cock.li>2020-04-21 23:27:51 +0300
commit6bb75a3a6d8452a3e1b88085fe87cf27386f222c (patch)
tree5142716edc3ad960329d212aba4b5250fbb0c1b9 /src/components/notification
parentd5457c323a186ed7890e7ba311c36d189c33d3fa (diff)
make relationships separate from users
Diffstat (limited to 'src/components/notification')
-rw-r--r--src/components/notification/notification.js2
-rw-r--r--src/components/notification/notification.vue2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index e7bd769e..09554f54 100644
--- a/src/components/notification/notification.js
+++ b/src/components/notification/notification.js
@@ -56,7 +56,7 @@ const Notification = {
return this.generateUserProfileLink(this.targetUser)
},
needMute () {
- return this.user.muted
+ return (this.$store.state.users.relationships[this.user.id] || {}).muting
}
}
}
diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue
index 411c0271..24d9fe90 100644
--- a/src/components/notification/notification.vue
+++ b/src/components/notification/notification.vue
@@ -40,7 +40,7 @@
<div class="notification-right">
<UserCard
v-if="userExpanded"
- :user="getUser(notification)"
+ :user-id="getUser(notification).id"
:rounded="true"
:bordered="true"
/>