Skip to content

Commit cd43dac

Browse files
authored
fix: post link not rendering if post body has lone image (#2100)
1 parent 5bb357c commit cd43dac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/features/post/useIsPostUrlMedia.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function useIsPostUrlMedia() {
2525
if (isRedgif(url)) return "from-url";
2626
}
2727

28-
if (post.post.body && findLoneImage(post.post.body)) {
28+
if (!post.post.url && post.post.body && findLoneImage(post.post.body)) {
2929
return "from-body";
3030
}
3131

0 commit comments

Comments
 (0)