mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-12-22 14:40:04 +01:00
don't display link preview card if it's the same as quoted status
This commit is contained in:
parent
45470e3355
commit
ece79f84a8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user