Blur NSFW profile avatars and banners unless the viewer has enabled NSFW

Hop-State: A_06FP9DH64R0TWDEQST5Z460
Hop-Proposal: R_06FP9DF1AKH8Z9GA7AD24G0
Hop-Task: T_06FP9B65YW8Z4VM9386KDB8
Hop-Attempt: AT_06FP9B65YZ94YY9QS6C6Q38
This commit is contained in:
2026-07-15 00:38:06 -07:00
committed by Hop
parent c17b27b240
commit b291c5a453
23 changed files with 206 additions and 34 deletions
+4
View File
@@ -343,6 +343,8 @@ export interface SwarmUserProfile {
postsCount: number;
createdAt: string;
isBot?: boolean;
isNsfw: boolean;
nodeIsNsfw: boolean;
botOwnerHandle?: string; // Handle of the bot's owner (e.g., "user" or "user@domain")
nodeDomain: string;
chatPublicKey?: string;
@@ -365,6 +367,8 @@ export interface SwarmUserPost {
displayName?: string;
avatarUrl?: string;
isBot?: boolean;
isNsfw?: boolean;
nodeIsNsfw?: boolean;
nodeDomain?: string;
};
media?: { url: string; mimeType?: string; altText?: string }[];