mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 10:53:01 +00:00
sign here
This commit is contained in:
1 parent
c4867a247e
commit
5d802dc55c
1 file changed
+5
-9
@@ -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));
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user