sforkowany z mirror/social
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>feature/noid/sql-rewrite-0929
rodzic
461292237b
commit
33ba9440b9
|
@ -30,7 +30,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import TimelinePost from './TimelinePost'
|
||||
import TimelinePost from './TimelinePost.vue'
|
||||
|
||||
export default {
|
||||
name: 'TimelineEntry',
|
||||
|
|
|
@ -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>
|
||||
|
|
Ładowanie…
Reference in New Issue