Make instance logo customisable (#3829)
This commit is contained in:
		@@ -39,6 +39,13 @@ export const meta = {
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		logoUrl: {
 | 
			
		||||
			validator: $.str.optional.nullable,
 | 
			
		||||
			desc: {
 | 
			
		||||
				'ja-JP': 'インスタンスロゴ画像のURL'
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		bannerUrl: {
 | 
			
		||||
			validator: $.str.optional.nullable,
 | 
			
		||||
			desc: {
 | 
			
		||||
@@ -328,6 +335,10 @@ export default define(meta, (ps) => new Promise(async (res, rej) => {
 | 
			
		||||
		set.hidedTags = ps.hidedTags;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (ps.logoUrl !== undefined) {
 | 
			
		||||
		set.logoUrl = ps.logoUrl;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (ps.bannerUrl !== undefined) {
 | 
			
		||||
		set.bannerUrl = ps.bannerUrl;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -65,6 +65,7 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => {
 | 
			
		||||
		enableRecaptcha: instance.enableRecaptcha,
 | 
			
		||||
		recaptchaSiteKey: instance.recaptchaSiteKey,
 | 
			
		||||
		swPublickey: instance.swPublicKey,
 | 
			
		||||
		logoUrl: instance.logoUrl,
 | 
			
		||||
		bannerUrl: instance.bannerUrl,
 | 
			
		||||
		errorImageUrl: instance.errorImageUrl,
 | 
			
		||||
		maxNoteTextLength: instance.maxNoteTextLength,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user