Skip to content
Snippets Groups Projects
Unverified Commit f32d8b70 authored by MeiMei's avatar MeiMei Committed by GitHub
Browse files

0以下のリアクションは送らないように Resolve #6263 (#6264)

parent 90e85275
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,8 @@ export function convertLegacyReactions(reactions: Record<string, number>) {
const _reactions = {} as Record<string, number>;
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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment