Fix profile link at the top of statuses

Signed-off-by: Louis Chemineau <louis@chmn.me>
pull/1660/head
Louis Chemineau 2023-03-15 11:49:58 +01:00
rodzic 33af3cb783
commit 1b358b70da
2 zmienionych plików z 4 dodań i 20 usunięć

Wyświetl plik

@ -11,17 +11,12 @@
<span class="icon-boost" />
</div>
<div class="boost">
<router-link v-if="!isProfilePage && item.account"
:to="{ name: 'profile', params: { account: item.account.username } }">
<span v-tooltip.bottom="item.account.acct" class="post-author">
<router-link v-if="item.account"
:to="{ name: 'profile', params: { account: item.account.acct } }">
<span :title="item.account.acct" class="post-author">
{{ item.account.display_name }}
</span>
</router-link>
<a v-else :href="item.account.id">
<span class="post-author-id">
{{ item.account.id }}
</span>
</a>
{{ t('social', 'boosted') }}
</div>
</template>
@ -64,10 +59,6 @@ export default {
type: String,
required: true,
},
isProfilePage: {
type: Boolean,
default: false,
},
},
computed: {
/**

Wyświetl plik

@ -2,10 +2,9 @@
<div class="post-content">
<div class="post-header">
<div class="post-author-wrapper">
<!-- TODO -->
<router-link v-if="item.account"
:to="{ name: 'profile',
params: { account: (isLocal && !isNotification) ? item.account.display_name : item.account.username }
params: { account: item.account.acct }
}">
<span class="post-author">
{{ item.account.display_name }}
@ -14,11 +13,6 @@
@{{ item.account.username }}
</span>
</router-link>
<a v-else :href="item.account.id">
<span class="post-author-id">
{{ item.account.id }}
</span>
</a>
</div>
<a :data-timestamp="timestamp"
class="post-timestamp live-relative-timestamp"
@ -34,7 +28,6 @@
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-else class="post-message" v-html="item.account.note" />
<div v-if="hasAttachments" class="post-attachments">
<!-- TODO: clean media_attachments -->
<PostAttachment :attachments="item.media_attachments || []" />
</div>
<div v-if="$route && $route.params.type !== 'notifications' && !serverData.public" class="post-actions">