mirror of
https://github.com/spacebarchat/server.git
synced 2026-06-04 00:01:33 +00:00
sign 'em
This commit is contained in:
@@ -352,6 +352,17 @@ async function consume(this: WebSocket, opts: EventOpts) {
|
||||
userAgent: this.userAgent,
|
||||
}),
|
||||
).attachments;
|
||||
if (data["components"]) {
|
||||
data["components"] = (
|
||||
await Message.prototype.withSignedComponents.call(
|
||||
data,
|
||||
new NewUrlUserSignatureData({
|
||||
ip: this.ipAddress,
|
||||
userAgent: this.userAgent,
|
||||
}),
|
||||
)
|
||||
).components;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user