about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/status/components/detailed_status.js
diff options
context:
space:
mode:
authorRens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl>2022-08-13 15:39:05 +0200
committerGitHub <noreply@github.com>2022-08-13 15:39:05 +0200
commite6979aa6d43f24ab290c27f596fcd71fcc0ac03a (patch)
treecea440aa564b063aca6c6532d1297d1cdeb5cecf /app/javascript/mastodon/features/status/components/detailed_status.js
parent03f19b8cd38ee0096f9a4ce47247379ed6f94cd7 (diff)
Add warning for sensitive audio posts (#17885)
Diffstat (limited to 'app/javascript/mastodon/features/status/components/detailed_status.js')
-rw-r--r--app/javascript/mastodon/features/status/components/detailed_status.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/status/components/detailed_status.js b/app/javascript/mastodon/features/status/components/detailed_status.js
index 13bce1b83..5c43c2038 100644
--- a/app/javascript/mastodon/features/status/components/detailed_status.js
+++ b/app/javascript/mastodon/features/status/components/detailed_status.js
@@ -138,7 +138,11 @@ class DetailedStatus extends ImmutablePureComponent {
             backgroundColor={attachment.getIn(['meta', 'colors', 'background'])}
             foregroundColor={attachment.getIn(['meta', 'colors', 'foreground'])}
             accentColor={attachment.getIn(['meta', 'colors', 'accent'])}
+            sensitive={status.get('sensitive')}
+            visible={this.props.showMedia}
+            blurhash={attachment.get('blurhash')}
             height={150}
+            onToggleVisibility={this.props.onToggleMediaVisibility}
           />
         );
       } else if (status.getIn(['media_attachments', 0, 'type']) === 'video') {