Fix target account link

This commit is contained in:
kPherox 2019-12-11 04:02:25 +09:00
parent 6af870cd90
commit 31aa177eea
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D
2 changed files with 13 additions and 1 deletions

View File

@ -55,6 +55,18 @@ const Notification = {
userProfileLink () {
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 () {
return this.user.muted
}

View File

@ -123,7 +123,7 @@
v-else-if="notification.type === 'move'"
class="move-text"
>
<router-link :to="userProfileLink">
<router-link :to="targetUserProfileLink">
@{{ notification.target.screen_name }}
</router-link>
</div>