From 0fb416b159d8d88c7c69799f74d89848f546675b Mon Sep 17 00:00:00 2001 From: Tom Date: Thu, 27 Apr 2023 18:33:51 +0200 Subject: [PATCH] Update getCommentMediaInfo.js --- src/utils/getCommentMediaInfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/getCommentMediaInfo.js b/src/utils/getCommentMediaInfo.js index 93528539..3202e9b3 100644 --- a/src/utils/getCommentMediaInfo.js +++ b/src/utils/getCommentMediaInfo.js @@ -37,9 +37,9 @@ const getCommentMediaInfo = (comment) => { } } - if (comment?.thumbnailUrl !== comment?.link) { + if (comment?.thumbnailUrl && comment?.thumbnailUrl !== comment?.link) { return { - url: comment.link, + url: comment.thumbnailUrl, type: 'webpage', }; }