record ModLog entry when setting a user's content warning
This commit is contained in:
parent
4f79f85703
commit
568d82a974
8 changed files with 55 additions and 9 deletions
|
|
@ -147,6 +147,7 @@ export const moderationLogTypes = [
|
|||
'deleteGlobalAnnouncement',
|
||||
'deleteUserAnnouncement',
|
||||
'resetPassword',
|
||||
'setMandatoryCW',
|
||||
'setRemoteInstanceNSFW',
|
||||
'unsetRemoteInstanceNSFW',
|
||||
'suspendRemoteInstance',
|
||||
|
|
@ -335,6 +336,13 @@ export type ModerationLogPayloads = {
|
|||
userUsername: string;
|
||||
userHost: string | null;
|
||||
};
|
||||
setMandatoryCW: {
|
||||
newCW: string | null;
|
||||
oldCW: string | null;
|
||||
userId: string;
|
||||
userUsername: string;
|
||||
userHost: string | null;
|
||||
};
|
||||
setRemoteInstanceNSFW: {
|
||||
id: string;
|
||||
host: string;
|
||||
|
|
|
|||
|
|
@ -118,8 +118,8 @@ export type ModerationLog = {
|
|||
type: 'deleteUserAnnouncement';
|
||||
info: ModerationLogPayloads['deleteUserAnnouncement'];
|
||||
} | {
|
||||
type: 'resetPassword';
|
||||
info: ModerationLogPayloads['resetPassword'];
|
||||
type: 'setMandatoryCW';
|
||||
info: ModerationLogPayloads['setMandatoryCW'];
|
||||
} | {
|
||||
type: 'setRemoteInstanceNSFW';
|
||||
info: ModerationLogPayloads['setRemoteInstanceNSFW'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue