feat(media): add support for audio links

This commit is contained in:
plebeius.eth
2024-04-08 19:34:09 +02:00
parent 7ab2ffc3c2
commit 0a52944a07
3 changed files with 23 additions and 11 deletions
+1
View File
@@ -17,6 +17,7 @@ export const getHasThumbnail = (commentMediaInfo: CommentMediaInfo | undefined,
commentMediaInfo &&
(commentMediaInfo.type === 'image' ||
commentMediaInfo.type === 'video' ||
commentMediaInfo.type === 'audio' ||
commentMediaInfo.type === 'gif' ||
(commentMediaInfo.type === 'webpage' && commentMediaInfo.thumbnail) ||
(commentMediaInfo.type === 'iframe' && iframeThumbnail))