From ece79f84a8118750117d446f299b25ff79d9f8c1 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 11 Oct 2023 22:43:51 +0300 Subject: [PATCH] don't display link preview card if it's the same as quoted status --- src/components/status_content/status_content.js | 4 ++++ src/components/status_content/status_content.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js index 89f0aa517d..c01b80af8a 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 c0e5c0b9de..e977d489e1 100644 --- a/src/components/status_content/status_content.vue +++ b/src/components/status_content/status_content.vue @@ -43,7 +43,7 @@ />