Skip to content

Commit 6e06298

Browse files
committed
Fixes velopert#9
1 parent b840aeb commit 6e06298

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/containers/post/PostViewer.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,12 @@ const PostViewer: React.FC<PostViewerProps> = ({
321321
tags={post.tags}
322322
username={username}
323323
date={post.released_at}
324-
thumbnail={post.thumbnail}
324+
thumbnail={
325+
post.thumbnail &&
326+
(post.body.includes(encodeURI(post.thumbnail))
327+
? null
328+
: post.thumbnail)
329+
}
325330
series={post.series}
326331
hideThumbnail={!!post.thumbnail && post.body.includes(post.thumbnail)}
327332
postId={post.id}

0 commit comments

Comments
 (0)