enhance: モデレーターがチャットルームの内容を確認・削除できるように
This commit is contained in:
parent
304d0eb83b
commit
a01ae38a07
12 changed files with 73 additions and 7 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -195,6 +195,9 @@ export type ModerationLog = {
|
|||
} | {
|
||||
type: 'deleteGalleryPost';
|
||||
info: ModerationLogPayloads['deleteGalleryPost'];
|
||||
} | {
|
||||
type: 'deleteChatRoom';
|
||||
info: ModerationLogPayloads['deleteChatRoom'];
|
||||
});
|
||||
|
||||
export type ServerStats = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue