diff --git a/assets/images/placeholders/placeholder_magnet.png b/assets/images/placeholders/placeholder_magnet.png new file mode 100644 index 0000000..fc5907e Binary files /dev/null and b/assets/images/placeholders/placeholder_magnet.png differ diff --git a/frontend/Components/TextContent/index.tsx b/frontend/Components/TextContent/index.tsx index 12fc819..0dce97b 100644 --- a/frontend/Components/TextContent/index.tsx +++ b/frontend/Components/TextContent/index.tsx @@ -50,6 +50,7 @@ export const TextContent: React.FC = ({ const MEDIA_COVER = '../../../assets/images/placeholders/placeholder_media.png' const IMAGE_COVER = '../../../assets/images/placeholders/placeholder_image.png' const BLUEBIRD_COVER = '../../../assets/images/placeholders/placeholder_bluebird.png' + const MAGNET_COVER = '../../../assets/images/placeholders/placeholder_magnet.png' const MAGNET_LINK = /(magnet:)\S+/ useEffect(() => { @@ -177,7 +178,7 @@ export const TextContent: React.FC = ({ const getDefaultCover: () => number = () => { if (!linkPreview) return require(DEFAULT_COVER) - if (linkType === 'magnet') return require(DEFAULT_COVER) + if (linkType === 'magnet') return require(MAGNET_COVER) if (linkType === 'blueBird') return require(BLUEBIRD_COVER) if (linkType === 'audio') return require(MEDIA_COVER) if (linkType === 'video') return require(MEDIA_COVER)