handleClickThread(thread.cid)}>
- {commentMediaInfo?.url ? (
-
- R:
-
{thread.replyCount}
+
handleClickThread(thread.cid)}>
+
+ {commentMediaInfo?.url ? (
+
+ {commentMediaInfo?.type === "webpage" ? (
+
{
+ e.target.src = fallbackImgUrl
+ e.target.onerror = null;}} />
+ ) : null}
+ {commentMediaInfo?.type === "image" ? (
+
{
+ e.target.src = fallbackImgUrl
+ e.target.onerror = null;}} />
+ ) : null}
+ {commentMediaInfo?.type === "video" ? (
+ {
+ const img = document.querySelector(`img[key="img-${thread.cid}"]`);
+ if (img) {
+ img.src = thumbnail;
+ }
+ }}
+ />
+ ) : null}
+ {commentMediaInfo?.type === "audio" ? (
+
+ ) : null}
+ {/*
+
+
*/}
+
+ R:
+ {thread.replyCount}
+
+
+ {thread.title ? `${thread.title}` : null}
+ {thread.content ? `: ${thread.content}` : null}
+
-
- {thread.title ? `${thread.title}` : null}
- {thread.content ? `: ${thread.content}` : null}
-
-