Make instance logo customisable (#3829)

This commit is contained in:
ibrokemypie 2019-01-04 05:02:40 +11:00 committed by syuilo
parent 562cd6ad0b
commit ebf9cd18c8
7 changed files with 20 additions and 1 deletions

View file

@ -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;
}