mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-03 23:16:28 +09:00
feat: インスタンスのテーマカラーを設定できるように
This commit is contained in:
@ -41,6 +41,10 @@ export const meta = {
|
||||
validator: $.optional.nullable.arr($.str),
|
||||
},
|
||||
|
||||
themeColor: {
|
||||
validator: $.optional.nullable.str,
|
||||
},
|
||||
|
||||
mascotImageUrl: {
|
||||
validator: $.optional.nullable.str,
|
||||
},
|
||||
@ -331,6 +335,10 @@ export default define(meta, async (ps, me) => {
|
||||
set.blockedHosts = ps.blockedHosts.filter(Boolean);
|
||||
}
|
||||
|
||||
if (ps.themeColor !== undefined) {
|
||||
set.themeColor = ps.themeColor;
|
||||
}
|
||||
|
||||
if (ps.mascotImageUrl !== undefined) {
|
||||
set.mascotImageUrl = ps.mascotImageUrl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user