Fix target account link
This commit is contained in:
parent
6af870cd90
commit
31aa177eea
|
@ -55,6 +55,18 @@ const Notification = {
|
||||||
userProfileLink () {
|
userProfileLink () {
|
||||||
return this.generateUserProfileLink(this.user)
|
return this.generateUserProfileLink(this.user)
|
||||||
},
|
},
|
||||||
|
targetUserInStore () {
|
||||||
|
return this.$store.getters.findUser(this.notification.target.id)
|
||||||
|
},
|
||||||
|
targetUser () {
|
||||||
|
if (this.targetUserInStore) {
|
||||||
|
return this.targetUserInStore
|
||||||
|
}
|
||||||
|
return this.notification.target
|
||||||
|
},
|
||||||
|
targetUserProfileLink () {
|
||||||
|
return this.generateUserProfileLink(this.targetUser)
|
||||||
|
},
|
||||||
needMute () {
|
needMute () {
|
||||||
return this.user.muted
|
return this.user.muted
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,7 +123,7 @@
|
||||||
v-else-if="notification.type === 'move'"
|
v-else-if="notification.type === 'move'"
|
||||||
class="move-text"
|
class="move-text"
|
||||||
>
|
>
|
||||||
<router-link :to="userProfileLink">
|
<router-link :to="targetUserProfileLink">
|
||||||
@{{ notification.target.screen_name }}
|
@{{ notification.target.screen_name }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue