不明なリアクションのフォールバックに star を使うようにするオプション

This commit is contained in:
syuilo 2019-03-18 01:03:35 +09:00
parent 810ed50976
commit 08c176e549
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
10 changed files with 26 additions and 16 deletions

View file

@ -48,6 +48,13 @@ export const meta = {
}
},
useStarForReactionFallback: {
validator: $.optional.nullable.bool,
desc: {
'ja-JP': '不明なリアクションのフォールバックに star リアクションを使うか'
}
},
hidedTags: {
validator: $.optional.nullable.arr($.str),
desc: {
@ -362,6 +369,10 @@ export default define(meta, async (ps) => {
set.enableEmojiReaction = ps.enableEmojiReaction;
}
if (typeof ps.useStarForReactionFallback === 'boolean') {
set.useStarForReactionFallback = ps.useStarForReactionFallback;
}
if (Array.isArray(ps.hidedTags)) {
set.hidedTags = ps.hidedTags;
}