enhance: サーバーごとにモデレーションノートを残せるように

This commit is contained in:
syuilo
2024-02-22 20:59:52 +09:00
parent fb0eb5a31f
commit 26c8b53f70
16 changed files with 96 additions and 9 deletions

View File

@@ -4480,6 +4480,7 @@ export type components = {
infoUpdatedAt: string | null;
/** Format: date-time */
latestRequestReceivedAt: string | null;
moderationNote?: string | null;
};
GalleryPost: {
/**
@@ -7213,7 +7214,8 @@ export type operations = {
content: {
'application/json': {
host: string;
isSuspended: boolean;
isSuspended?: boolean;
moderationNote?: string;
};
};
};

View File

@@ -121,6 +121,7 @@ export const moderationLogTypes = [
'resetPassword',
'suspendRemoteInstance',
'unsuspendRemoteInstance',
'updateRemoteInstanceNote',
'markSensitiveDriveFile',
'unmarkSensitiveDriveFile',
'resolveAbuseReport',
@@ -261,6 +262,12 @@ export type ModerationLogPayloads = {
id: string;
host: string;
};
updateRemoteInstanceNote: {
id: string;
host: string;
before: string | null;
after: string | null;
};
markSensitiveDriveFile: {
fileId: string;
fileUserId: string | null;

View File

@@ -95,6 +95,9 @@ export type ModerationLog = {
} | {
type: 'unsuspendRemoteInstance';
info: ModerationLogPayloads['unsuspendRemoteInstance'];
} | {
type: 'updateRemoteInstanceNote';
info: ModerationLogPayloads['updateRemoteInstanceNote'];
} | {
type: 'markSensitiveDriveFile';
info: ModerationLogPayloads['markSensitiveDriveFile'];