From 388de9dc96d0250a58cdcef85df9bcd437b5aa99 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Mon, 20 Sep 2021 21:55:19 +0900 Subject: [PATCH] chore, perf: Reduce redis memory (#7816) * Reduce redis memory * CHANGELOG * a --- CHANGELOG.md | 1 + src/queue/index.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a15faf6a..b60fd7cfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ --> ## 12.x.x (unreleased) +- ActivityPub: deliverキューのメモリ使用量を削減 ### Improvements - ActivityPub: リモートユーザーのDeleteアクティビティに対応 diff --git a/src/queue/index.ts b/src/queue/index.ts index 4ca7998e6..ee34ed47e 100644 --- a/src/queue/index.ts +++ b/src/queue/index.ts @@ -64,7 +64,9 @@ export function deliver(user: ThinUser, content: unknown, to: string | null) { if (to == null) return null; const data = { - user, + user: { + id: user.id + }, content, to };