diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-05-09 00:43:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 00:43:20 -0500 |
commit | b756a2795807ad85051d572f82957356f9b5f44b (patch) | |
tree | 7a9c84b2bbbe590b048a55a04650b1cb8fc5b2d3 /src/view/com/post/Post.tsx | |
parent | 7a176b3fdff7d27651b306e7550010b344dfa922 (diff) | |
download | voidsky-b756a2795807ad85051d572f82957356f9b5f44b.tar.zst |
[APP-639] Improve nsfw handling & force hidden on iOS (#605)
* Identify adult content labels and handle them more specifically * Change adult content defaults to more conservative settings * Add an adultcontentenabled override that prohibits access on iOS * Improve usability of the content hider * Fix lint
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r-- | src/view/com/post/Post.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index af78a951b..90698ab31 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -23,6 +23,7 @@ import {PostEmbeds} from '../util/post-embeds' import {PostCtrls} from '../util/PostCtrls' import {PostHider} from '../util/moderation/PostHider' import {ContentHider} from '../util/moderation/ContentHider' +import {ImageHider} from '../util/moderation/ImageHider' import {Text} from '../util/text/Text' import {RichText} from '../util/text/RichText' import * as Toast from '../util/Toast' @@ -258,7 +259,9 @@ const PostLoaded = observer( /> </View> ) : undefined} - <PostEmbeds embed={item.post.embed} style={s.mb10} /> + <ImageHider moderation={item.moderation.list} style={s.mb10}> + <PostEmbeds embed={item.post.embed} style={s.mb10} /> + </ImageHider> </ContentHider> <PostCtrls itemUri={itemUri} |