mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 01:30:23 +01:00
enhance(backend): metaにfederation modeに関する情報を公開
This commit is contained in:
parent
dac3b1f405
commit
3978383d8f
3 changed files with 8 additions and 0 deletions
|
@ -132,6 +132,7 @@ export class MetaEntityService {
|
||||||
enableUrlPreview: instance.urlPreviewEnabled,
|
enableUrlPreview: instance.urlPreviewEnabled,
|
||||||
noteSearchableScope: (this.config.meilisearch == null || this.config.meilisearch.scope !== 'local') ? 'global' : 'local',
|
noteSearchableScope: (this.config.meilisearch == null || this.config.meilisearch.scope !== 'local') ? 'global' : 'local',
|
||||||
maxFileSize: this.config.maxFileSize,
|
maxFileSize: this.config.maxFileSize,
|
||||||
|
federation: this.meta.federation,
|
||||||
};
|
};
|
||||||
|
|
||||||
return packed;
|
return packed;
|
||||||
|
|
|
@ -261,6 +261,11 @@ export const packedMetaLiteSchema = {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
|
federation: {
|
||||||
|
type: 'string',
|
||||||
|
enum: ['all', 'specified', 'none'],
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -5029,6 +5029,8 @@ export type components = {
|
||||||
*/
|
*/
|
||||||
noteSearchableScope: 'local' | 'global';
|
noteSearchableScope: 'local' | 'global';
|
||||||
maxFileSize: number;
|
maxFileSize: number;
|
||||||
|
/** @enum {string} */
|
||||||
|
federation: 'all' | 'specified' | 'none';
|
||||||
};
|
};
|
||||||
MetaDetailedOnly: {
|
MetaDetailedOnly: {
|
||||||
features?: {
|
features?: {
|
||||||
|
|
Loading…
Reference in a new issue