don't record deleted note, flash, page, or gallery post in modlog

This commit is contained in:
Hazelnoot 2025-02-27 11:20:13 -05:00
parent c02fd47811
commit e030facaa9
6 changed files with 0 additions and 16 deletions

View file

@ -162,7 +162,6 @@ export class NoteDeleteService {
noteUserId: note.userId,
noteUserUsername: user.username,
noteUserHost: user.host,
note: note,
});
}

View file

@ -78,7 +78,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
flashId: flash.id,
flashUserId: flash.userId,
flashUserUsername: user.username,
flash,
});
}
});

View file

@ -78,7 +78,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
postId: post.id,
postUserId: post.userId,
postUserUsername: user.username,
post,
});
}
});

View file

@ -79,7 +79,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
pageId: page.id,
pageUserId: page.userId,
pageUserUsername: user.username,
page,
});
}
});

View file

@ -239,7 +239,6 @@ export type ModerationLogPayloads = {
noteUserId: string;
noteUserUsername: string;
noteUserHost: string | null;
note: any;
};
createGlobalAnnouncement: {
announcementId: string;
@ -422,19 +421,16 @@ export type ModerationLogPayloads = {
pageId: string;
pageUserId: string;
pageUserUsername: string;
page: any;
};
deleteFlash: {
flashId: string;
flashUserId: string;
flashUserUsername: string;
flash: any;
};
deleteGalleryPost: {
postId: string;
postUserId: string;
postUserUsername: string;
post: any;
};
acceptQuotesUser: {
userId: string,

View file

@ -4,12 +4,8 @@ import type {
Ad,
Announcement,
EmojiDetailed,
Flash,
GalleryPost,
InviteCode,
MetaDetailed,
Note,
Page,
Role,
ReversiGameDetailed,
SystemWebhook,
@ -295,7 +291,6 @@ export type ModerationLogPayloads = {
noteUserId: string;
noteUserUsername: string;
noteUserHost: string | null;
note: Note;
};
createGlobalAnnouncement: {
announcementId: string;
@ -478,19 +473,16 @@ export type ModerationLogPayloads = {
pageId: string;
pageUserId: string;
pageUserUsername: string;
page: Page;
};
deleteFlash: {
flashId: string;
flashUserId: string;
flashUserUsername: string;
flash: Flash;
};
deleteGalleryPost: {
postId: string;
postUserId: string;
postUserUsername: string;
post: GalleryPost;
};
acceptQuotesUser: {
userId: string,