summary refs log tree commit diff
path: root/src/api/routes/users
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-11-26 17:06:06 +0100
committerRory& <root@rory.gay>2025-11-26 17:06:06 +0100
commitde4a1ed58b51e42d8655faa874cccf11929253ce (patch)
tree956533fc17f6cc68e62c4c04ea4d0725c6dc9877 /src/api/routes/users
parentActually include messages in mentions result (diff)
downloadserver-ts-de4a1ed58b51e42d8655faa874cccf11929253ce.tar.xz
Swap around toJSON and withSignedAttachments (oops)
Diffstat (limited to 'src/api/routes/users')
-rw-r--r--src/api/routes/users/@me/mentions.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/users/@me/mentions.ts b/src/api/routes/users/@me/mentions.ts

index f13edf0a..0bee6bb0 100644 --- a/src/api/routes/users/@me/mentions.ts +++ b/src/api/routes/users/@me/mentions.ts
@@ -183,12 +183,12 @@ router.get( ], }) ).map((m) => - m.toJSON().withSignedAttachments( + m.withSignedAttachments( new NewUrlUserSignatureData({ ip: req.ip, userAgent: req.headers["user-agent"] as string, }), - ), + ).toJSON(), ); console.log(`[Inbox/mentions] User ${user.id} fetched full message data for ${finalMessages.length} messages in ${sw.elapsed().totalMilliseconds}ms`);