From 38954043601ed3b3ae971dd171a13135f029c035 Mon Sep 17 00:00:00 2001 From: smolgrrr Date: Sat, 7 Sep 2024 14:06:18 +1000 Subject: [PATCH] fail media for the moment --- client/src/components/modals/MediaRender.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/components/modals/MediaRender.tsx b/client/src/components/modals/MediaRender.tsx index be8da50..b23e937 100644 --- a/client/src/components/modals/MediaRender.tsx +++ b/client/src/components/modals/MediaRender.tsx @@ -87,16 +87,16 @@ const RenderMedia = ({ files }: { files: string[] }) => { // Check for both NSFW and gore content if (mediaCheckResult && (mediaCheckResult.nsfwLabel !== 'neutral')) { return ( -
+

This Wired instance blocks NSFW media.

); } - if (file && (file.endsWith(".mp4") || file.endsWith(".webm")) && mediaCheckResult && mediaCheckResult.nsfwLabel === 'neutral') { + if (file && (file.endsWith(".mp4") || file.endsWith(".webm")) && mediaCheckResult && mediaCheckResult.nsfwLabel === 'fail') { return ( ); - } else if (file && mediaCheckResult && mediaCheckResult.nsfwLabel === 'neutral') { + } else if (file && mediaCheckResult && mediaCheckResult.nsfwLabel === 'fail') { return ( Invalid thread { ); } else { return ( -
+

Checking media...

);