sign here

This commit is contained in:
MathMan05
2026-03-07 00:58:31 +01:00
committed by Rory&
parent 80fe4764cf
commit 93fe7b494a
@@ -233,15 +233,11 @@ router.put(
// no await as it shouldnt block the message send function and silently catch error
postHandleMessage(message).catch((e) => console.error("[Message] post-message handler failed", e));
return res.json(
message.withSignedAttachments(
new NewUrlUserSignatureData({
ip: req.ip,
userAgent: req.headers["user-agent"] as string,
}),
),
);
const sign = new NewUrlUserSignatureData({
ip: req.ip,
userAgent: req.headers["user-agent"] as string,
});
return res.json(Message.prototype.withSignedComponents.call(message.withSignedAttachments(sign), sign));
},
);