This commit is contained in:
syuilo 2018-09-12 02:48:19 +09:00
parent bb8139196e
commit 046976dffc
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
7 changed files with 142 additions and 62 deletions

View file

@ -23,6 +23,12 @@ export const meta = {
}
}),
disableLocalTimeline: $.bool.optional.nullable.note({
desc: {
'ja-JP': 'ローカルタイムライン(とソーシャルタイムライン)を無効にするか否か'
}
}),
hidedTags: $.arr($.str).optional.nullable.note({
desc: {
'ja-JP': '統計などで無視するハッシュタグ'
@ -45,6 +51,10 @@ export default (params: any) => new Promise(async (res, rej) => {
set.disableRegistration = ps.disableRegistration;
}
if (typeof ps.disableLocalTimeline === 'boolean') {
set.disableLocalTimeline = ps.disableLocalTimeline;
}
if (Array.isArray(ps.hidedTags)) {
set.hidedTags = ps.hidedTags;
}