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:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user