Fix quote rendering error
This commit is contained in:
parent
8d9dbad935
commit
e4082177dc
1 changed files with 9 additions and 1 deletions
|
@ -74,7 +74,7 @@
|
|||
<div class="quote-header">
|
||||
<avatar :profile="post.quote.account"></avatar>
|
||||
<span class="display-name">
|
||||
{{ (new ProfileWrapper(post.quote.account)).getDisplayName() }}
|
||||
{{ getQuoteAuthorDisplayName() }}
|
||||
</span>
|
||||
<span class="actor-address">
|
||||
@{{ getActorAddress(post.quote.account) }}
|
||||
|
@ -328,6 +328,14 @@ function getReplyMentions(): Mention[] {
|
|||
return props.post.mentions
|
||||
}
|
||||
|
||||
function getQuoteAuthorDisplayName(): string | null {
|
||||
if (props.post.quote === null) {
|
||||
return null
|
||||
}
|
||||
const profile = new ProfileWrapper(props.post.quote.account)
|
||||
return profile.getDisplayName()
|
||||
}
|
||||
|
||||
function canReply(): boolean {
|
||||
return currentUser !== null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue