1
0

record ModLog entry when setting a user's content warning

This commit is contained in:
Hazelnoot
2025-01-28 11:39:41 -05:00
parent 4f79f85703
commit 568d82a974
8 changed files with 55 additions and 9 deletions
+8
View File
@@ -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;