diff options
| author | dave <starpumadev@gmail.com> | 2019-04-01 12:22:49 -0400 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-04-01 12:22:49 -0400 |
| commit | 6482201dc9e54d458bec48794260ffa1749c512b (patch) | |
| tree | 4b7fed12d8b4d6fb2754e4d40a691354dbed7aa9 /src | |
| parent | 0af2f8e4fd399100a0034137ab26c6742db43639 (diff) | |
#436 - sync notification & timeline users
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/notification/notification.js | 4 | ||||
| -rw-r--r-- | src/components/notification/notification.vue | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index 95fd312e..4ad7de36 100644 --- a/src/components/notification/notification.js +++ b/src/components/notification/notification.js @@ -33,13 +33,13 @@ const Notification = { 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 } } } diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue index bf952479..77ad89e1 100644 --- a/src/components/notification/notification.vue +++ b/src/components/notification/notification.vue @@ -10,7 +10,7 @@ <UserAvatar :compact="true" :betterShadow="betterShadow" :src="notification.from_profile.profile_image_url_original" /> </a> <div class='notification-right'> - <UserCard :user="notification.from_profile" :rounded="true" :bordered="true" v-if="userExpanded" /> + <UserCard :user="user" :rounded="true" :bordered="true" v-if="userExpanded" /> <span class="notification-details"> <div class="name-and-action"> <span class="username" v-if="!!notification.from_profile.name_html" :title="'@'+notification.from_profile.screen_name" v-html="notification.from_profile.name_html"></span> |
