aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordave <starpumadev@gmail.com>2019-04-01 12:13:11 -0400
committerdave <starpumadev@gmail.com>2019-04-01 12:13:11 -0400
commit0af2f8e4fd399100a0034137ab26c6742db43639 (patch)
tree1e425c67e3168a9bc357aa4f9b66911938e119d4 /src
parent21ea5adc8b4f8eb16026cdefd60a60c8952ae162 (diff)
parent6c24ae9b0be25becc453cd62ba78b955c5fb6c70 (diff)
#436 - merge develop & resolve conflict
Diffstat (limited to 'src')
-rw-r--r--src/components/notification/notification.js9
-rw-r--r--src/components/notification/notification.vue4
-rw-r--r--src/components/user_profile/user_profile.js3
3 files changed, 11 insertions, 5 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index 4e6f46a6..95fd312e 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.from_profile
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 {}
}
}
}
diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue
index e5876cfa..bf952479 100644
--- a/src/components/notification/notification.vue
+++ b/src/components/notification/notification.vue
@@ -1,11 +1,11 @@
<template>
- <status
+ <status
v-if="notification.type === 'mention'"
:compact="true"
:statusoid="notification.status"
>
</status>
- <div class="non-mention" :class="[userClass, { highlighted: userStyle }]" :style="[ userStyle ]"v-else>
+ <div class="non-mention" :class="[userClass, { highlighted: userStyle }]" :style="[ userStyle ]" v-else>
<a class='avatar-container' :href="notification.from_profile.statusnet_profile_url" @click.stop.prevent.capture="toggleUserExpanded">
<UserAvatar :compact="true" :betterShadow="betterShadow" :src="notification.from_profile.profile_image_url_original" />
</a>
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
index 82df4510..1df06fe6 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -72,9 +72,6 @@ const UserProfile = {
return this.$store.getters.findUser(this.fetchedUserId || routeParams.name || routeParams.id)
},
user () {
- if (this.timeline.statuses[0]) {
- return this.timeline.statuses[0].user
- }
if (this.userInStore) {
return this.userInStore
}