Swap around toJSON and withSignedAttachments (oops)

This commit is contained in:
Rory&
2025-11-26 17:06:06 +01:00
parent ad0b0245dd
commit de4a1ed58b

View File

@@ -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`);