From baa320b79502d0974297a0bcf888e5b21fbe7b64 Mon Sep 17 00:00:00 2001 From: smolgrrr Date: Sat, 7 Sep 2024 10:14:23 +1000 Subject: [PATCH] misc --- client/src/components/modals/CardModals/TextModal.tsx | 2 +- client/src/components/modals/MediaRender.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/modals/CardModals/TextModal.tsx b/client/src/components/modals/CardModals/TextModal.tsx index 3237da2..29208ca 100644 --- a/client/src/components/modals/CardModals/TextModal.tsx +++ b/client/src/components/modals/CardModals/TextModal.tsx @@ -9,7 +9,7 @@ import LinkModal from "./LinkPreview"; import { EventPointer } from "nostr-tools/lib/types/nip19"; const RichText = ({ text, isExpanded, emojiMap }: { text: string; isExpanded: boolean; emojiMap: Record }) => { - let content = isExpanded ? text.split('\n') : text.slice(0, 350).split('\n'); + let content = isExpanded ? text.split('\n') : text.slice(0, 750).split('\n'); return ( <> diff --git a/client/src/components/modals/MediaRender.tsx b/client/src/components/modals/MediaRender.tsx index de3533d..be8da50 100644 --- a/client/src/components/modals/MediaRender.tsx +++ b/client/src/components/modals/MediaRender.tsx @@ -88,7 +88,7 @@ const RenderMedia = ({ files }: { files: string[] }) => { if (mediaCheckResult && (mediaCheckResult.nsfwLabel !== 'neutral')) { return (
-

Attached media has been flagged as not safe for work or contains gore.

+

This Wired instance blocks NSFW media.

); }