summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/ReactionService.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-05-11 05:06:58 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-05-14 23:24:51 -0400
commitb4bce57fcb35e2bd7021eef1b608bd17d3533b10 (patch)
tree75b6eb8354ff71c3927d4d80b4419ca081a995fd /packages/backend/src/core/ReactionService.ts
parentalso delete AP logs for cascading notes (diff)
downloadsharkey-b4bce57fcb35e2bd7021eef1b608bd17d3533b10.tar.gz
sharkey-b4bce57fcb35e2bd7021eef1b608bd17d3533b10.tar.bz2
sharkey-b4bce57fcb35e2bd7021eef1b608bd17d3533b10.zip
update user activity on Renote, Un-Renote, Note Edit, React, and Un-React
Diffstat (limited to 'packages/backend/src/core/ReactionService.ts')
-rw-r--r--packages/backend/src/core/ReactionService.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/backend/src/core/ReactionService.ts b/packages/backend/src/core/ReactionService.ts
index 6cc4ef4205..373fea8605 100644
--- a/packages/backend/src/core/ReactionService.ts
+++ b/packages/backend/src/core/ReactionService.ts
@@ -212,6 +212,8 @@ export class ReactionService {
.execute();
}
+ this.usersRepository.update({ id: user.id }, { updatedAt: new Date() });
+
// 30%の確率、セルフではない、3日以内に投稿されたノートの場合ハイライト用ランキング更新
if (
Math.random() < 0.3 &&
@@ -330,6 +332,8 @@ export class ReactionService {
.execute();
}
+ this.usersRepository.update({ id: user.id }, { updatedAt: new Date() });
+
this.globalEventService.publishNoteStream(note.id, 'unreacted', {
reaction: this.decodeReaction(exist.reaction).reaction,
userId: user.id,