Capture '@' also

This commit is contained in:
Bryan Ashby 2023-04-20 20:56:25 -06:00
parent 821d6cef70
commit 6dde005f21
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ module.exports = class Note extends ActivityPubObject {
return;
}
const m = /^@([^ ]+) ./.exec(message.message);
const m = /^(@[^ ]+) ./.exec(message.message);
if (m && m[1]) {
message.toUserName = m[1];
}