Fixes the wrong account info used for creating an author's profile link in the

notification timeline

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
pull/625/head
Cyrille Bollu 2019-09-10 13:22:52 +02:00
rodzic 461292237b
commit 33ba9440b9
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -30,7 +30,7 @@
</template>
<script>
import TimelinePost from './TimelinePost'
import TimelinePost from './TimelinePost.vue'
export default {
name: 'TimelineEntry',

Wyświetl plik

@ -9,7 +9,10 @@
<div class="post-content">
<div class="post-header">
<div class="post-author-wrapper">
<router-link v-if="item.actor_info" :to="{ name: 'profile', params: { account: item.local ? item.actor_info.preferredUsername : item.actor_info.account }}">
<router-link v-if="item.actor_info"
:to="{ name: 'profile',
params: { account: (item.local && item.type!=='SocialAppNotification') ? item.actor_info.preferredUsername : item.actor_info.account }
}">
<span class="post-author">
{{ userDisplayName(item.actor_info) }}
</span>