Update getCommentMediaInfo.js

This commit is contained in:
Tom
2023-04-27 18:33:51 +02:00
parent fca0030df6
commit 0fb416b159
+2 -2
View File
@@ -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',
};
}