From 2764a8ae879a4406887af16ccb1dfb063fc13ad6 Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 29 Apr 2023 17:10:11 +0200 Subject: [PATCH] fix getCommentMediaInfo --- src/utils/getCommentMediaInfo.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils/getCommentMediaInfo.js b/src/utils/getCommentMediaInfo.js index 3202e9b3..0b07cd2c 100644 --- a/src/utils/getCommentMediaInfo.js +++ b/src/utils/getCommentMediaInfo.js @@ -43,6 +43,13 @@ const getCommentMediaInfo = (comment) => { type: 'webpage', }; } + + if (comment?.link) { + return { + url: comment.link, + type: 'webpage', + }; + } }; export default getCommentMediaInfo; \ No newline at end of file