Make instance logo customisable (#3829)
This commit is contained in:
parent
562cd6ad0b
commit
ebf9cd18c8
7 changed files with 20 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue