fix: default sensitive not letting users unmark files
This commit is contained in:
parent
ba17776b19
commit
65ac5fef46
8 changed files with 35 additions and 5 deletions
|
|
@ -560,7 +560,7 @@ export class DriveService {
|
|||
file.maybeSensitive = info.sensitive;
|
||||
file.maybePorn = info.porn;
|
||||
file.isSensitive = user
|
||||
? this.userEntityService.isLocalUser(user) && profile!.alwaysMarkNsfw ? true :
|
||||
? this.userEntityService.isLocalUser(user) && (profile!.alwaysMarkNsfw || profile!.defaultSensitive) ? true :
|
||||
sensitive ?? false
|
||||
: false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue