mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-27 22:34:11 +00:00
Fix leaking private User data in mentions
This commit is contained in:
@@ -222,6 +222,7 @@ export class Message extends BaseClass {
|
||||
member_id: undefined,
|
||||
webhook_id: this.webhook_id ?? undefined,
|
||||
application_id: undefined,
|
||||
mentions: this.mentions.map((user) => user.toPublicUser() ?? undefined),
|
||||
|
||||
nonce: this.nonce ?? undefined,
|
||||
tts: this.tts ?? false,
|
||||
|
||||
Reference in New Issue
Block a user