This commit is contained in:
syuilo 2018-09-20 17:21:16 +09:00
parent 77a0450b5d
commit d058ecc4ea
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
6 changed files with 75 additions and 3 deletions

View file

@ -34,6 +34,12 @@ export const meta = {
'ja-JP': '統計などで無視するハッシュタグ'
}
}),
bannerUrl: $.str.optional.nullable.note({
desc: {
'ja-JP': 'インスタンスのバナー画像URL'
}
}),
}
};
@ -59,6 +65,10 @@ export default (params: any) => new Promise(async (res, rej) => {
set.hidedTags = ps.hidedTags;
}
if (ps.bannerUrl !== undefined) {
set.bannerUrl = ps.bannerUrl;
}
await Meta.update({}, {
$set: set
}, { upsert: true });