diff --git a/src/components/comment-media/comment-media.tsx b/src/components/comment-media/comment-media.tsx
index 78f6fe3c..3b26aa40 100644
--- a/src/components/comment-media/comment-media.tsx
+++ b/src/components/comment-media/comment-media.tsx
@@ -135,7 +135,7 @@ interface ImageProps {
const Image = ({ commentMediaInfo, displayHeight, displayWidth, isOutOfFeed, post }: ImageProps) => {
const { t } = useTranslation();
- const { parentCid } = post || {};
+ const { parentCid, spoiler } = post || {};
const { type, url } = commentMediaInfo || {};
const isReply = parentCid;
const isMobile = useIsMobile();
@@ -151,6 +151,15 @@ const Image = ({ commentMediaInfo, displayHeight, displayWidth, isOutOfFeed, pos
const [hasError, setHasError] = useState(false);
const handleError = () => setHasError(true);
+ if (spoiler && !isImageExpanded) {
+ const spoilerDimensions = { '--width': '150px', '--height': '150px' } as React.CSSProperties;
+ return (
+
+
setIsImageExpanded(true)} />
+
+ );
+ }
+
return isMobile ? (