mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-17 13:15:41 +00:00
Swap around toJSON and withSignedAttachments (oops)
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user