feat: リモートサーバーのサーバー情報を収集しないオプション (#14634)
* wip * wip * Update FetchInstanceMetadataService.ts * Update FetchInstanceMetadataService.ts * Update types.ts
This commit is contained in:
		| @@ -348,6 +348,10 @@ export const meta = { | ||||
| 				type: 'boolean', | ||||
| 				optional: false, nullable: false, | ||||
| 			}, | ||||
| 			enableStatsForFederatedInstances: { | ||||
| 				type: 'boolean', | ||||
| 				optional: false, nullable: false, | ||||
| 			}, | ||||
| 			enableServerMachineStats: { | ||||
| 				type: 'boolean', | ||||
| 				optional: false, nullable: false, | ||||
| @@ -635,6 +639,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
| 				truemailAuthKey: instance.truemailAuthKey, | ||||
| 				enableChartsForRemoteUser: instance.enableChartsForRemoteUser, | ||||
| 				enableChartsForFederatedInstances: instance.enableChartsForFederatedInstances, | ||||
| 				enableStatsForFederatedInstances: instance.enableStatsForFederatedInstances, | ||||
| 				enableServerMachineStats: instance.enableServerMachineStats, | ||||
| 				enableIdenticonGeneration: instance.enableIdenticonGeneration, | ||||
| 				bannedEmailDomains: instance.bannedEmailDomains, | ||||
|   | ||||
| @@ -136,6 +136,7 @@ export const paramDef = { | ||||
| 		truemailAuthKey: { type: 'string', nullable: true }, | ||||
| 		enableChartsForRemoteUser: { type: 'boolean' }, | ||||
| 		enableChartsForFederatedInstances: { type: 'boolean' }, | ||||
| 		enableStatsForFederatedInstances: { type: 'boolean' }, | ||||
| 		enableServerMachineStats: { type: 'boolean' }, | ||||
| 		enableIdenticonGeneration: { type: 'boolean' }, | ||||
| 		serverRules: { type: 'array', items: { type: 'string' } }, | ||||
| @@ -578,6 +579,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
| 				set.enableChartsForFederatedInstances = ps.enableChartsForFederatedInstances; | ||||
| 			} | ||||
|  | ||||
| 			if (ps.enableStatsForFederatedInstances !== undefined) { | ||||
| 				set.enableStatsForFederatedInstances = ps.enableStatsForFederatedInstances; | ||||
| 			} | ||||
|  | ||||
| 			if (ps.enableServerMachineStats !== undefined) { | ||||
| 				set.enableServerMachineStats = ps.enableServerMachineStats; | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo