From ece79f84a8118750117d446f299b25ff79d9f8c1 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 11 Oct 2023 22:43:51 +0300 Subject: don't display link preview card if it's the same as quoted status --- src/components/status_content/status_content.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/components/status_content/status_content.js') 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) -- cgit v1.2.3-70-g09d2 From 8f87a1506964e1b6dafc662f896e4332cd50eee9 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 13 Oct 2023 12:37:50 +0300 Subject: oops --- changelog.d/quote-hide-oops.fix | 1 + src/components/status_content/status_content.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/quote-hide-oops.fix (limited to 'src/components/status_content/status_content.js') diff --git a/changelog.d/quote-hide-oops.fix b/changelog.d/quote-hide-oops.fix new file mode 100644 index 00000000..d93c0d29 --- /dev/null +++ b/changelog.d/quote-hide-oops.fix @@ -0,0 +1 @@ +fix typo in code that prevented cards from showing at all diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js index c01b80af..8d8a91dc 100644 --- a/src/components/status_content/status_content.js +++ b/src/components/status_content/status_content.js @@ -75,7 +75,7 @@ const StatusContent = { ...controlledOrUncontrolledGetters(['showingTall', 'expandingSubject', 'showingLongSubject']), statusCard () { if (!this.status.card) return null - return this.status.card.url === this.status.quote_url ? null : status.card + return this.status.card.url === this.status.quote_url ? null : this.status.card }, hideAttachments () { return (this.mergedConfig.hideAttachments && !this.inConversation) || -- cgit v1.2.3-70-g09d2