Skip to content

Commit a209be1

Browse files
committed
fix: RelatedPost props
1 parent fc1d7d8 commit a209be1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/containers/post/PostViewer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,9 @@ const PostViewer: React.FC<PostViewerProps> = ({
457457
}
458458
/>
459459
)} */}
460-
{showRecommends ? <RelatedPost postId={post.id} showAds={false} /> : null}
460+
{showRecommends ? (
461+
<RelatedPost postId={post.id} showAds={post?.user.id !== userId} />
462+
) : null}
461463
</PostViewerProvider>
462464
);
463465
};

0 commit comments

Comments
 (0)