mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix thumbnailUrl values in catalog
This commit is contained in:
@@ -417,15 +417,18 @@ const Catalog = () => {
|
|||||||
{commentMediaInfo?.url ? (
|
{commentMediaInfo?.url ? (
|
||||||
<Fragment key="f-catalog">
|
<Fragment key="f-catalog">
|
||||||
{commentMediaInfo?.type === "webpage" ? (
|
{commentMediaInfo?.type === "webpage" ? (
|
||||||
<img key={`img-${index}`} alt="thread"
|
thread.thumbnailUrl ? (
|
||||||
src={commentMediaInfo.url}
|
<img key={`img-${index}`}
|
||||||
|
src={commentMediaInfo.thumbnail} alt={commentMediaInfo.type}
|
||||||
onError={(e) => {
|
onError={(e) => {
|
||||||
e.target.src = fallbackImgUrl
|
e.target.src = fallbackImgUrl
|
||||||
e.target.onerror = null;}} />
|
e.target.onerror = null;
|
||||||
|
}} />
|
||||||
|
) : null
|
||||||
) : null}
|
) : null}
|
||||||
{commentMediaInfo?.type === "image" ? (
|
{commentMediaInfo?.type === "image" ? (
|
||||||
<img key={`img-${index}`} alt="thread"
|
<img key={`img-${index}`}
|
||||||
src={commentMediaInfo.url}
|
src={commentMediaInfo.url} alt={commentMediaInfo.type}
|
||||||
onError={(e) => {
|
onError={(e) => {
|
||||||
e.target.src = fallbackImgUrl
|
e.target.src = fallbackImgUrl
|
||||||
e.target.onerror = null;}} />
|
e.target.onerror = null;}} />
|
||||||
|
|||||||
Reference in New Issue
Block a user