diff options
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r-- | src/view/com/post/Post.tsx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index 43fbb9ccb..e82498a7d 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -184,7 +184,12 @@ export const Post = observer(function Post({ </Link> </View> )} - {record.text ? ( + {item.post.author.viewer?.muted ? ( + <View style={[styles.mutedWarning, pal.btn]}> + <FontAwesomeIcon icon={['far', 'eye-slash']} style={s.mr2} /> + <Text type="body2">This post is by a muted account.</Text> + </View> + ) : record.text ? ( <View style={styles.postTextContainer}> <RichText text={record.text} entities={record.entities} /> </View> @@ -222,6 +227,14 @@ const styles = StyleSheet.create({ layoutContent: { flex: 1, }, + mutedWarning: { + flexDirection: 'row', + alignItems: 'center', + padding: 10, + marginTop: 2, + marginBottom: 6, + borderRadius: 2, + }, postTextContainer: { flexDirection: 'row', alignItems: 'center', |