about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/components/status.js
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-10 19:36:12 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-11-12 13:51:30 +0100
commit487689f062877c49f5eb7cc75695f676c8db80cc (patch)
tree43f781b6b99b68c5926cb0248f535b116ca5bb3d /app/javascript/flavours/glitch/components/status.js
parent3fa6c603badeb0ce8f74f21b12cfab2bb214e8e0 (diff)
[Glitch] Remove preview cards from fav and boost notifications
Port 99734ac9367eb8af705aecca423c998aadddbd59 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/components/status.js')
-rw-r--r--app/javascript/flavours/glitch/components/status.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/status.js b/app/javascript/flavours/glitch/components/status.js
index 366a98d82..800832dc8 100644
--- a/app/javascript/flavours/glitch/components/status.js
+++ b/app/javascript/flavours/glitch/components/status.js
@@ -687,7 +687,7 @@ class Status extends ImmutablePureComponent {
       if (!status.get('sensitive') && !(status.get('spoiler_text').length > 0) && settings.getIn(['collapsed', 'backgrounds', 'preview_images'])) {
         background = attachments.getIn([0, 'preview_url']);
       }
-    } else if (status.get('card') && settings.get('inline_preview_cards')) {
+    } else if (status.get('card') && settings.get('inline_preview_cards') && !this.props.muted) {
       media.push(
         <Card
           onOpenMedia={this.handleOpenMedia}