mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 09:15:44 +01:00
Fix bug
This commit is contained in:
parent
998b1c4a9c
commit
282f685065
1 changed files with 9 additions and 11 deletions
|
@ -1,13 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="sub">
|
<div class="sub">
|
||||||
<router-link class="avatar-anchor" :to="`/@${acct}`">
|
<router-link class="avatar-anchor" :to="`/@${getAcct(note.user)}`">
|
||||||
<img class="avatar" :src="`${note.user.avatarUrl}?thumbnail&size=96`" alt="avatar"/>
|
<img class="avatar" :src="`${note.user.avatarUrl}?thumbnail&size=96`" alt="avatar"/>
|
||||||
</router-link>
|
</router-link>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<header>
|
<header>
|
||||||
<router-link class="name" :to="`/@${acct}`">{{ getUserName(note.user) }}</router-link>
|
<router-link class="name" :to="`/@${getAcct(note.user)}`">{{ getUserName(note.user) }}</router-link>
|
||||||
<span class="username">@{{ acct }}</span>
|
<span class="username">@{{ getAcct(note.user) }}</span>
|
||||||
<router-link class="created-at" :to="`/@${acct}/${note.id}`">
|
<router-link class="created-at" :to="`/@${getAcct(note.user)}/${note.id}`">
|
||||||
<mk-time :time="note.createdAt"/>
|
<mk-time :time="note.createdAt"/>
|
||||||
</router-link>
|
</router-link>
|
||||||
</header>
|
</header>
|
||||||
|
@ -25,13 +25,11 @@ import getUserName from '../../../../../renderers/get-user-name';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
props: ['note'],
|
props: ['note'],
|
||||||
computed: {
|
data() {
|
||||||
acct() {
|
return {
|
||||||
return getAcct(this.note.user);
|
getAcct,
|
||||||
},
|
getUserName
|
||||||
name() {
|
};
|
||||||
return getUserName(this.note.user);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue