From 946606ac1f4dbd73aad40a1af19a4b226545dd0b Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 22 Sep 2023 14:57:28 +0200 Subject: [PATCH] fix(PostOnHover): add embed thumbnail --- src/components/PostOnHover.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/PostOnHover.jsx b/src/components/PostOnHover.jsx index 84a729fe..b7e7ca10 100644 --- a/src/components/PostOnHover.jsx +++ b/src/components/PostOnHover.jsx @@ -94,8 +94,15 @@ const PostOnHover = ({ cid, feed }) => { {replyMediaInfo?.url.length > 30 ? replyMediaInfo?.url.slice(0, 30) + '(...)' : replyMediaInfo?.url} -  ({replyMediaInfo?.type}) +  {replyMediaInfo?.type === 'iframe' ? null : ` (${replyMediaInfo?.type})`} + {replyMediaInfo?.type === 'iframe' && ( +
+ + {replyMediaInfo.thumbnail && thumbnail (e.target.src = fallbackImgUrl)} />} + +
+ )} {replyMediaInfo?.type === 'webpage' ? (