From f32d8b7069391c59a5cd3ff14948e8ce12294e0f Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Thu, 16 Apr 2020 00:45:43 +0900 Subject: 0以下のリアクションは送らないように Resolve #6263 (#6264) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/misc/reaction-lib.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/misc') diff --git a/src/misc/reaction-lib.ts b/src/misc/reaction-lib.ts index e5da5ca4aa..d59fb67a6b 100644 --- a/src/misc/reaction-lib.ts +++ b/src/misc/reaction-lib.ts @@ -26,6 +26,8 @@ export function convertLegacyReactions(reactions: Record) { const _reactions = {} as Record; for (const reaction of Object.keys(reactions)) { + if (reactions[reaction] <= 0) continue; + if (Object.keys(legacies).includes(reaction)) { if (_reactions[legacies[reaction]]) { _reactions[legacies[reaction]] += reactions[reaction]; -- cgit v1.2.3-freya