summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2021-09-20 21:55:19 +0900
committerGitHub <noreply@github.com>2021-09-20 21:55:19 +0900
commit388de9dc96d0250a58cdcef85df9bcd437b5aa99 (patch)
tree5f4f5fa1be6a6261058c3bec72acb5de3a8aa053
parenttest: improve e2e test (diff)
downloadsharkey-388de9dc96d0250a58cdcef85df9bcd437b5aa99.tar.gz
sharkey-388de9dc96d0250a58cdcef85df9bcd437b5aa99.tar.bz2
sharkey-388de9dc96d0250a58cdcef85df9bcd437b5aa99.zip
chore, perf: Reduce redis memory (#7816)
* Reduce redis memory * CHANGELOG * a
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/queue/index.ts4
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8a15faf6a7..b60fd7cfa0 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 4ca7998e61..ee34ed47e4 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
};