統計で無視するハッシュタグを設定できるように
This commit is contained in:
parent
106d4cc0d6
commit
7343e6e2e8
6 changed files with 74 additions and 6 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue