This commit is contained in:
syuilo 2019-01-16 14:54:14 +09:00
parent eb45eeb1ae
commit 13cee2b4f5
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
9 changed files with 30 additions and 7 deletions

View file

@ -32,6 +32,13 @@ export const meta = {
}
},
disableGlobalTimeline: {
validator: $.bool.optional.nullable,
desc: {
'ja-JP': 'グローバルタイムラインを無効にするか否か'
}
},
hidedTags: {
validator: $.arr($.str).optional.nullable,
desc: {
@ -331,6 +338,10 @@ export default define(meta, (ps) => new Promise(async (res, rej) => {
set.disableLocalTimeline = ps.disableLocalTimeline;
}
if (typeof ps.disableGlobalTimeline === 'boolean') {
set.disableGlobalTimeline = ps.disableGlobalTimeline;
}
if (Array.isArray(ps.hidedTags)) {
set.hidedTags = ps.hidedTags;
}