mirror of
https://github.com/smolgrrr/TAO.git
synced 2024-09-20 01:11:25 +00:00
misc
This commit is contained in:
parent
89f2aa6699
commit
baa320b795
@ -9,7 +9,7 @@ import LinkModal from "./LinkPreview";
|
|||||||
import { EventPointer } from "nostr-tools/lib/types/nip19";
|
import { EventPointer } from "nostr-tools/lib/types/nip19";
|
||||||
|
|
||||||
const RichText = ({ text, isExpanded, emojiMap }: { text: string; isExpanded: boolean; emojiMap: Record<string, any> }) => {
|
const RichText = ({ text, isExpanded, emojiMap }: { text: string; isExpanded: boolean; emojiMap: Record<string, any> }) => {
|
||||||
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 (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -88,7 +88,7 @@ const RenderMedia = ({ files }: { files: string[] }) => {
|
|||||||
if (mediaCheckResult && (mediaCheckResult.nsfwLabel !== 'neutral')) {
|
if (mediaCheckResult && (mediaCheckResult.nsfwLabel !== 'neutral')) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<p className="text-center text-red-500 text-xs">Attached media has been flagged as not safe for work or contains gore.</p>
|
<p className="text-center text-red-500 text-xs">This Wired instance blocks NSFW media.</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user