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
@@ -30,6 +30,8 @@ export interface AuthAccount {
publicKey: string;
privateKeyEncrypted: string | null;
email: string | null;
isNsfw: boolean;
nsfwEnabled: boolean;
isActive: boolean;
}
@@ -111,6 +113,8 @@ function toAuthAccount(session: SessionRecord, activeToken: string | null): Auth
publicKey: session.user.publicKey,
privateKeyEncrypted: session.user.privateKeyEncrypted,
email: session.user.email,
isNsfw: session.user.isNsfw,
nsfwEnabled: session.user.nsfwEnabled,
isActive: session.token === activeToken,
};
}