enhance: モデレーターがチャットルームの内容を確認・削除できるように

This commit is contained in:
syuilo 2025-03-25 15:51:45 +09:00
parent 304d0eb83b
commit a01ae38a07
12 changed files with 73 additions and 7 deletions

View file

@ -14,6 +14,7 @@ import type {
ReversiGameDetailed,
SystemWebhook,
UserLite,
ChatRoom,
} from './autogen/models.js';
export const notificationTypes = ['note', 'follow', 'mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote', 'pollEnded', 'receiveFollowRequest', 'followRequestAccepted', 'groupInvited', 'app', 'roleAssigned', 'chatRoomInvitationReceived', 'achievementEarned'] as const;
@ -165,6 +166,7 @@ export const moderationLogTypes = [
'deletePage',
'deleteFlash',
'deleteGalleryPost',
'deleteChatRoom',
] as const;
// See: packages/backend/src/core/ReversiService.ts@L410
@ -437,4 +439,8 @@ export type ModerationLogPayloads = {
postUserUsername: string;
post: GalleryPost;
};
deleteChatRoom: {
roomId: string;
room: ChatRoom;
};
};

View file

@ -195,6 +195,9 @@ export type ModerationLog = {
} | {
type: 'deleteGalleryPost';
info: ModerationLogPayloads['deleteGalleryPost'];
} | {
type: 'deleteChatRoom';
info: ModerationLogPayloads['deleteChatRoom'];
});
export type ServerStats = {