Skip to content

Commit 26b0ef7

Browse files
committed
Hides RelatedPostsForGuest when post is very old
1 parent f2dc5fa commit 26b0ef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/containers/post/PostViewer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ const PostViewer: React.FC<PostViewerProps> = ({
388388
/>
389389
</UserProfileWrapper>
390390
<LinkedPostList linkedPosts={post.linked_posts} />
391-
{showRecommends && userId === null && (
391+
{showRecommends && userId === null && !isVeryOld && (
392392
<RelatedPostsForGuest
393393
postId={post.id}
394394
showAds={
@@ -404,7 +404,7 @@ const PostViewer: React.FC<PostViewerProps> = ({
404404
comments={post.comments}
405405
postId={post.id}
406406
/>
407-
{showRecommends && userId !== null && (
407+
{showRecommends && (userId !== null || isVeryOld) && (
408408
<RelatedPost
409409
postId={post.id}
410410
showAds={

0 commit comments

Comments
 (0)