diff --git a/routes/_components/status/Status.html b/routes/_components/status/Status.html
index 8bfaba6d..2592ea33 100644
--- a/routes/_components/status/Status.html
+++ b/routes/_components/status/Status.html
@@ -27,7 +27,7 @@
{{/if}}
- {{#if originalStatus.media_attachments && originalStatus.media_attachments.length}}
+ {{#if showMedia }}
{{/if}}
@@ -206,6 +206,11 @@
},
spoilerShown: ($spoilersShown, uuid) => !!$spoilersShown[uuid],
replyShown: ($repliesShown, uuid) => !!$repliesShown[uuid],
+ showMedia: (originalStatus, isStatusInNotification) => {
+ return !isStatusInNotification
+ && originalStatus.media_attachments
+ && originalStatus.media_attachments.length
+ },
ariaLabel: (originalAccount, originalStatus, visibility) => {
return (visibility === 'direct' ? 'Direct message' : 'Status') +
` by ${originalAccount.display_name || originalAccount.username}`