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>
</div>
<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"/>
</router-link>
<header>
<router-link class="name" :to="`/@${acct}`" v-user-preview="p.user.id">{{ p.user.name }}</router-link>
<span class="username">@{{ acct }}</span>
<router-link class="time" :to="`/@${acct}/${p.id}`">
<router-link class="name" :to="`/@${pAcct}`" v-user-preview="p.user.id">{{ p.user.name }}</router-link>
<span class="username">@{{ pAcct }}</span>
<router-link class="time" :to="`/@${pAcct}/${p.id}`">
<mk-time :time="p.createdAt"/>
</router-link>
</header>
@ -131,6 +131,9 @@ export default Vue.extend({
return dateStringify(this.p.createdAt);
},
acct(): string {
return getAcct(this.post.user);
},
pAcct(): string {
return getAcct(this.p.user);
},
urls(): string[] {