don't display link preview card if it's the same as quoted status

このコミットが含まれているのは:
Henry Jameson 2023-10-11 22:43:51 +03:00
コミット ece79f84a8
2個のファイルの変更5行の追加1行の削除

ファイルの表示

@ -73,6 +73,10 @@ const StatusContent = {
},
computed: {
...controlledOrUncontrolledGetters(['showingTall', 'expandingSubject', 'showingLongSubject']),
statusCard () {
if (!this.status.card) return null
return this.status.card.url === this.status.quote_url ? null : status.card
},
hideAttachments () {
return (this.mergedConfig.hideAttachments && !this.inConversation) ||
(this.mergedConfig.hideAttachmentsInConv && this.inConversation)

ファイルの表示

@ -43,7 +43,7 @@
/>
<div
v-if="status.card && !noHeading && !compact"
v-if="statusCard && !noHeading && !compact"
class="link-preview media-body"
>
<link-preview