enhance: サーバーのお問い合わせ先URLを設定できるように
This commit is contained in:
		| @@ -37,12 +37,12 @@ export class NodeinfoServerService { | ||||
| 	@bindThis | ||||
| 	public getLinks() { | ||||
| 		return [{ | ||||
| 				rel: 'http://nodeinfo.diaspora.software/ns/schema/2.1', | ||||
| 				href: this.config.url + nodeinfo2_1path | ||||
| 			}, { | ||||
| 				rel: 'http://nodeinfo.diaspora.software/ns/schema/2.0', | ||||
| 				href: this.config.url + nodeinfo2_0path, | ||||
| 			}]; | ||||
| 			rel: 'http://nodeinfo.diaspora.software/ns/schema/2.1', | ||||
| 			href: this.config.url + nodeinfo2_1path, | ||||
| 		}, { | ||||
| 			rel: 'http://nodeinfo.diaspora.software/ns/schema/2.0', | ||||
| 			href: this.config.url + nodeinfo2_0path, | ||||
| 		}]; | ||||
| 	} | ||||
|  | ||||
| 	@bindThis | ||||
| @@ -108,6 +108,7 @@ export class NodeinfoServerService { | ||||
| 					langs: meta.langs, | ||||
| 					tosUrl: meta.termsOfServiceUrl, | ||||
| 					privacyPolicyUrl: meta.privacyPolicyUrl, | ||||
| 					inquiryUrl: meta.inquiryUrl, | ||||
| 					impressumUrl: meta.impressumUrl, | ||||
| 					repositoryUrl: meta.repositoryUrl, | ||||
| 					feedbackUrl: meta.feedbackUrl, | ||||
|   | ||||
| @@ -427,6 +427,10 @@ export const meta = { | ||||
| 				type: 'string', | ||||
| 				optional: false, nullable: true, | ||||
| 			}, | ||||
| 			inquiryUrl: { | ||||
| 				type: 'string', | ||||
| 				optional: false, nullable: true, | ||||
| 			}, | ||||
| 			repositoryUrl: { | ||||
| 				type: 'string', | ||||
| 				optional: false, nullable: true, | ||||
| @@ -513,6 +517,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
| 				feedbackUrl: instance.feedbackUrl, | ||||
| 				impressumUrl: instance.impressumUrl, | ||||
| 				privacyPolicyUrl: instance.privacyPolicyUrl, | ||||
| 				inquiryUrl: instance.inquiryUrl, | ||||
| 				disableRegistration: instance.disableRegistration, | ||||
| 				emailRequiredForSignup: instance.emailRequiredForSignup, | ||||
| 				enableHcaptcha: instance.enableHcaptcha, | ||||
|   | ||||
| @@ -107,6 +107,7 @@ export const paramDef = { | ||||
| 		feedbackUrl: { type: 'string', nullable: true }, | ||||
| 		impressumUrl: { type: 'string', nullable: true }, | ||||
| 		privacyPolicyUrl: { type: 'string', nullable: true }, | ||||
| 		inquiryUrl: { type: 'string', nullable: true }, | ||||
| 		useObjectStorage: { type: 'boolean' }, | ||||
| 		objectStorageBaseUrl: { type: 'string', nullable: true }, | ||||
| 		objectStorageBucket: { type: 'string', nullable: true }, | ||||
| @@ -422,6 +423,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
| 				set.privacyPolicyUrl = ps.privacyPolicyUrl; | ||||
| 			} | ||||
|  | ||||
| 			if (ps.inquiryUrl !== undefined) { | ||||
| 				set.inquiryUrl = ps.inquiryUrl; | ||||
| 			} | ||||
|  | ||||
| 			if (ps.useObjectStorage !== undefined) { | ||||
| 				set.useObjectStorage = ps.useObjectStorage; | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo