diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-02 13:40:14 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-02 13:40:14 -0600 |
commit | 8cd2b4a721cd276669c401e51f1048033ed3df90 (patch) | |
tree | 7a0a3b7b972abf1ef3ab6c76cc4852a8c7680d83 /src/view/com/post-thread/PostThreadItem.tsx | |
parent | 3972706c54c4e89f2167dc65b931ed05356beb9f (diff) | |
download | voidsky-8cd2b4a721cd276669c401e51f1048033ed3df90.tar.zst |
Implement account muting
Diffstat (limited to 'src/view/com/post-thread/PostThreadItem.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 9bc8df110..ae2bd6681 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -282,7 +282,12 @@ export const PostThreadItem = observer(function PostThreadItem({ onCopyPostText={onCopyPostText} onDeletePost={onDeletePost} /> - {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} @@ -367,6 +372,14 @@ const styles = StyleSheet.create({ paddingRight: 5, maxWidth: 240, }, + mutedWarning: { + flexDirection: 'row', + alignItems: 'center', + padding: 10, + marginTop: 2, + marginBottom: 6, + borderRadius: 2, + }, postTextContainer: { flexDirection: 'row', alignItems: 'center', |