diff --git a/core/activitypub/note.js b/core/activitypub/note.js index f9c8c7ad..c3a97fa3 100644 --- a/core/activitypub/note.js +++ b/core/activitypub/note.js @@ -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]; }