diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-05-07 15:00:55 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-05-07 15:00:55 +0200 |
commit | 658ac4396cf1b7cab034701082645747c39f7af2 (patch) | |
tree | a45b66d3a626deda3c84c3e163675e1552f7ddb7 /app/javascript/flavours/glitch/features/report | |
parent | 6b94237810fefde05b3732ae2d657ce4f342b3b5 (diff) |
Hide media in report modal regardless of whether they are marked sensitive
The rationale behind this is that if the user wants to report violent media, they might not want to see it repeatedly. The “sensitive” property is still kept, displaying different messages for hidden media depending on whether they are marked as sensitive.
Diffstat (limited to 'app/javascript/flavours/glitch/features/report')
-rw-r--r-- | app/javascript/flavours/glitch/features/report/components/status_check_box.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/report/components/status_check_box.js b/app/javascript/flavours/glitch/features/report/components/status_check_box.js index d72a0fd07..a685132b0 100644 --- a/app/javascript/flavours/glitch/features/report/components/status_check_box.js +++ b/app/javascript/flavours/glitch/features/report/components/status_check_box.js @@ -40,6 +40,7 @@ export default class StatusCheckBox extends React.PureComponent { height={110} inline sensitive={status.get('sensitive')} + revealed={false} onOpenVideo={noop} /> )} @@ -48,7 +49,7 @@ export default class StatusCheckBox extends React.PureComponent { } else { media = ( <Bundle fetchComponent={MediaGallery} loading={this.renderLoadingMediaGallery} > - {Component => <Component media={status.get('media_attachments')} sensitive={status.get('sensitive')} height={110} onOpenMedia={noop} />} + {Component => <Component media={status.get('media_attachments')} sensitive={status.get('sensitive')} revealed={false} height={110} onOpenMedia={noop} />} </Bundle> ); } |