統計で無視するハッシュタグを設定できるように

This commit is contained in:
syuilo 2018-09-07 19:20:50 +09:00
parent 106d4cc0d6
commit 7343e6e2e8
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
6 changed files with 74 additions and 6 deletions

View file

@ -21,7 +21,13 @@ export const meta = {
desc: {
'ja-JP': '招待制か否か'
}
})
}),
hidedTags: $.arr($.str).optional.nullable.note({
desc: {
'ja-JP': '統計などで無視するハッシュタグ'
}
}),
}
};
@ -39,6 +45,10 @@ export default (params: any) => new Promise(async (res, rej) => {
set.disableRegistration = ps.disableRegistration;
}
if (Array.isArray(ps.hidedTags)) {
set.hidedTags = ps.hidedTags;
}
await Meta.update({}, {
$set: set
}, { upsert: true });