enhance(backend): metaにfederation modeに関する情報を公開

This commit is contained in:
kakkokari-gtyih 2024-12-10 14:29:23 +09:00
parent dac3b1f405
commit 3978383d8f
3 changed files with 8 additions and 0 deletions

View File

@ -132,6 +132,7 @@ export class MetaEntityService {
enableUrlPreview: instance.urlPreviewEnabled,
noteSearchableScope: (this.config.meilisearch == null || this.config.meilisearch.scope !== 'local') ? 'global' : 'local',
maxFileSize: this.config.maxFileSize,
federation: this.meta.federation,
};
return packed;

View File

@ -261,6 +261,11 @@ export const packedMetaLiteSchema = {
type: 'number',
optional: false, nullable: false,
},
federation: {
type: 'string',
enum: ['all', 'specified', 'none'],
optional: false, nullable: false,
},
},
} as const;

View File

@ -5029,6 +5029,8 @@ export type components = {
*/
noteSearchableScope: 'local' | 'global';
maxFileSize: number;
/** @enum {string} */
federation: 'all' | 'specified' | 'none';
};
MetaDetailedOnly: {
features?: {