add user-level "force content warning" moderation feature

This commit is contained in:
Hazelnoot 2025-01-28 01:47:03 -05:00
parent 2bf8648ebc
commit ea89348b62
11 changed files with 534 additions and 407 deletions

View file

@ -339,6 +339,15 @@ export class MiUser {
})
public enableRss: boolean;
/**
* Specifies a Content Warning that should be forcibly applied to all notes by this user.
* If null (default), then no Content Warning is applied.
*/
@Column('text', {
nullable: true,
})
public mandatoryCW: string | null;
constructor(data: Partial<MiUser>) {
if (data == null) return;