This commit is contained in:
syuilo 2018-03-31 21:46:58 +09:00
parent 3178bb20c7
commit a09613cdd4
1 changed files with 7 additions and 4 deletions

View File

@ -27,13 +27,13 @@
</p> </p>
</div> </div>
<article> <article>
<router-link class="avatar-anchor" :to="`/@${acct}`"> <router-link class="avatar-anchor" :to="`/@${pAcct}`">
<img class="avatar" :src="`${p.user.avatarUrl}?thumbnail&size=64`" alt="avatar" v-user-preview="p.user.id"/> <img class="avatar" :src="`${p.user.avatarUrl}?thumbnail&size=64`" alt="avatar" v-user-preview="p.user.id"/>
</router-link> </router-link>
<header> <header>
<router-link class="name" :to="`/@${acct}`" v-user-preview="p.user.id">{{ p.user.name }}</router-link> <router-link class="name" :to="`/@${pAcct}`" v-user-preview="p.user.id">{{ p.user.name }}</router-link>
<span class="username">@{{ acct }}</span> <span class="username">@{{ pAcct }}</span>
<router-link class="time" :to="`/@${acct}/${p.id}`"> <router-link class="time" :to="`/@${pAcct}/${p.id}`">
<mk-time :time="p.createdAt"/> <mk-time :time="p.createdAt"/>
</router-link> </router-link>
</header> </header>
@ -131,6 +131,9 @@ export default Vue.extend({
return dateStringify(this.p.createdAt); return dateStringify(this.p.createdAt);
}, },
acct(): string { acct(): string {
return getAcct(this.post.user);
},
pAcct(): string {
return getAcct(this.p.user); return getAcct(this.p.user);
}, },
urls(): string[] { urls(): string[] {