mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Update getCommentMediaInfo.js
This commit is contained in:
@@ -37,9 +37,9 @@ const getCommentMediaInfo = (comment) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (comment?.thumbnailUrl !== comment?.link) {
|
if (comment?.thumbnailUrl && comment?.thumbnailUrl !== comment?.link) {
|
||||||
return {
|
return {
|
||||||
url: comment.link,
|
url: comment.thumbnailUrl,
|
||||||
type: 'webpage',
|
type: 'webpage',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user