From 4edc7d895659c72299acb295c3311cad6d76c2c0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 24 Mar 2023 18:48:42 +0900 Subject: [PATCH] enhance of f01e6ef6bf --- packages/backend/src/core/ReactionService.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/ReactionService.ts b/packages/backend/src/core/ReactionService.ts index 271ba79176..f13e9ba15c 100644 --- a/packages/backend/src/core/ReactionService.ts +++ b/packages/backend/src/core/ReactionService.ts @@ -147,7 +147,11 @@ export class ReactionService { .where('id = :id', { id: note.id }) .execute(); - this.perUserReactionsChart.update(user, note); + const meta = await this.metaService.fetch(); + + if (meta.enableChartsForRemoteUser || (user.host == null)) { + this.perUserReactionsChart.update(user, note); + } // カスタム絵文字リアクションだったら絵文字情報も送る const decodedReaction = this.decodeReaction(reaction);