mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-13 22:28:58 +09:00
Fix bug
This commit is contained in:
parent
998b1c4a9c
commit
282f685065
@ -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 New Issue
Block a user