diff --git a/src/components/views/Board.jsx b/src/components/views/Board.jsx index 9a5f80b8..97e8f19d 100644 --- a/src/components/views/Board.jsx +++ b/src/components/views/Board.jsx @@ -487,7 +487,9 @@ const Board = () => { {commentMediaInfo?.type === "webpage" ? ( - thumbnail e.target.src = fallbackImgUrl} /> + {thread.thumbnailUrl ? ( + thumbnail e.target.src = fallbackImgUrl} /> + ) : null} ) : null} {commentMediaInfo?.type === "image" ? ( @@ -705,10 +707,12 @@ const Board = () => { {replyMediaInfo?.type === "webpage" ? ( - thumbnail e.target.src = fallbackImgUrl} /> + {reply.thumbnailUrl ? ( + thumbnail e.target.src = fallbackImgUrl} /> + ) : null} ) : null} {replyMediaInfo?.type === "image" ? ( @@ -834,7 +838,9 @@ const Board = () => { {commentMediaInfo?.url ? ( commentMediaInfo.type === "webpage" ? ( - thumbnail e.target.src = fallbackImgUrl} /> + {thread.thumbnailUrl ? ( + thumbnail e.target.src = fallbackImgUrl} /> + ) : null}
{commentMediaInfo?.type}
) : commentMediaInfo.type === "image" ? ( @@ -963,7 +969,9 @@ const Board = () => { {replyMediaInfo?.url ? ( replyMediaInfo.type === "webpage" ? ( - thumbnail e.target.src = fallbackImgUrl} /> + {reply.thumbnailUrl ? ( + thumbnail e.target.src = fallbackImgUrl} /> + ) : null}
{replyMediaInfo.type}
) : replyMediaInfo.type === "image" ? ( diff --git a/src/components/views/Thread.jsx b/src/components/views/Thread.jsx index 2b6c893d..7562485e 100644 --- a/src/components/views/Thread.jsx +++ b/src/components/views/Thread.jsx @@ -462,7 +462,9 @@ const Thread = () => { {commentMediaInfo?.type === "webpage" ? ( - thumbnail e.target.src = fallbackImgUrl} /> + {comment.thumbnailUrl ? ( + thumbnail e.target.src = fallbackImgUrl} /> + ) : null} ) : null} {commentMediaInfo?.type === "image" ? ( @@ -859,7 +861,9 @@ const Thread = () => { {replyMediaInfo?.url ? ( replyMediaInfo.type === "webpage" ? ( - thumbnail e.target.src = fallbackImgUrl} /> + {reply.thumbnailUrl ? ( + thumbnail e.target.src = fallbackImgUrl} /> + ) : null}
{replyMediaInfo.type}
) : replyMediaInfo.type === "image" ? (