Skip to content

Commit 13a0f81

Browse files
authored
Merge pull request velopert#450 from velopert/fix/recommend-post-props
fix: RelatedPost props
2 parents fc1d7d8 + a209be1 commit 13a0f81

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)