diff options
| author | Henry Jameson <me@hjkos.com> | 2023-10-11 22:43:51 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2023-10-11 22:43:51 +0300 |
| commit | ece79f84a8118750117d446f299b25ff79d9f8c1 (patch) | |
| tree | 6cbb3859a470c83474bae98c9e4c222733a03813 | |
| parent | 45470e3355ee7fc98ef3f380bb4a1bef0a060d6c (diff) | |
don't display link preview card if it's the same as quoted status
| -rw-r--r-- | src/components/status_content/status_content.js | 4 | ||||
| -rw-r--r-- | src/components/status_content/status_content.vue | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js index 89f0aa51..c01b80af 100644 --- a/src/components/status_content/status_content.js +++ b/src/components/status_content/status_content.js @@ -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) diff --git a/src/components/status_content/status_content.vue b/src/components/status_content/status_content.vue index c0e5c0b9..e977d489 100644 --- a/src/components/status_content/status_content.vue +++ b/src/components/status_content/status_content.vue @@ -43,7 +43,7 @@ /> <div - v-if="status.card && !noHeading && !compact" + v-if="statusCard && !noHeading && !compact" class="link-preview media-body" > <link-preview |
