about summary refs log tree commit diff
path: root/src/view/com/posts/FeedItem.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-02 13:45:27 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-02 13:45:27 -0600
commit99cec71ed798b29079eb474acd6f7cc799b51a51 (patch)
treedb192e3f11eacd3b249e7c08011fa49117010585 /src/view/com/posts/FeedItem.tsx
parent8cd2b4a721cd276669c401e51f1048033ed3df90 (diff)
downloadvoidsky-99cec71ed798b29079eb474acd6f7cc799b51a51.tar.zst
Dont mute posts for a user when viewing their profile
Diffstat (limited to 'src/view/com/posts/FeedItem.tsx')
-rw-r--r--src/view/com/posts/FeedItem.tsx11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx
index 3916ea453..150143a26 100644
--- a/src/view/com/posts/FeedItem.tsx
+++ b/src/view/com/posts/FeedItem.tsx
@@ -24,9 +24,11 @@ import {usePalette} from '../../lib/hooks/usePalette'
 export const FeedItem = observer(function ({
   item,
   showReplyLine,
+  ignoreMuteFor,
 }: {
   item: FeedItemModel
   showReplyLine?: boolean
+  ignoreMuteFor?: string
 }) {
   const store = useStores()
   const theme = useTheme()
@@ -110,7 +112,11 @@ export const FeedItem = observer(function ({
   return (
     <>
       {isChild && !item._isThreadChild && item.replyParent ? (
-        <FeedItem item={item.replyParent} showReplyLine />
+        <FeedItem
+          item={item.replyParent}
+          showReplyLine
+          ignoreMuteFor={ignoreMuteFor}
+        />
       ) : undefined}
       <Link style={outerStyles} href={itemHref} title={itemTitle} noFeedback>
         {item._isThreadChild && (
@@ -201,7 +207,8 @@ export const FeedItem = observer(function ({
                 </Link>
               </View>
             )}
-            {item.post.author.viewer?.muted ? (
+            {item.post.author.viewer?.muted &&
+            ignoreMuteFor !== item.post.author.did ? (
               <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>