Skip to content
Snippets Groups Projects
Commit a39f5c92 authored by Hazelnoot's avatar Hazelnoot
Browse files

add missing `rejectReports` field to `show-instance` response

parent eb2ea85d
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,7 @@ export class InstanceEntityService {
infoUpdatedAt: instance.infoUpdatedAt ? instance.infoUpdatedAt.toISOString() : null,
latestRequestReceivedAt: instance.latestRequestReceivedAt ? instance.latestRequestReceivedAt.toISOString() : null,
isNSFW: instance.isNSFW,
rejectReports: instance.rejectReports,
moderationNote: iAmModerator ? instance.moderationNote : null,
};
}
......
......@@ -121,6 +121,11 @@ export const packedFederationInstanceSchema = {
optional: false,
nullable: false,
},
rejectReports: {
type: 'boolean',
optional: false,
nullable: false,
},
moderationNote: {
type: 'string',
optional: true, nullable: true,
......
......@@ -4772,6 +4772,7 @@ export type components = {
/** Format: date-time */
latestRequestReceivedAt: string | null;
isNSFW: boolean;
rejectReports: boolean;
moderationNote?: string | null;
};
GalleryPost: {
......@@ -15366,6 +15367,10 @@ export type operations = {
untilId?: string;
/** @default 10 */
limit?: number;
/** @default false */
includeFollower?: boolean;
/** @default true */
includeFollowee?: boolean;
};
};
};
......@@ -15425,6 +15430,10 @@ export type operations = {
untilId?: string;
/** @default 10 */
limit?: number;
/** @default false */
includeFollower?: boolean;
/** @default true */
includeFollowee?: boolean;
};
};
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment