diff options
Diffstat (limited to 'src/view/com/posts/FeedItem.tsx')
-rw-r--r-- | src/view/com/posts/FeedItem.tsx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 4d444fea2..3916ea453 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -106,6 +106,7 @@ export const FeedItem = observer(function ({ isNoTop ? styles.outerNoTop : undefined, item._isThreadParent ? styles.outerNoBottom : undefined, ] + return ( <> {isChild && !item._isThreadChild && item.replyParent ? ( @@ -200,7 +201,12 @@ export const FeedItem = observer(function ({ </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 type="body1" @@ -303,6 +309,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', |