Skip to content
Snippets Groups Projects
Verified Commit 31aa177e authored by kPherox's avatar kPherox
Browse files

Fix target account link

parent 6af870cd
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!1026Fix for move type notification
......@@ -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
}
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment