From 6dde005f215a83209cfd2e13753e99ba6621bd1e Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Thu, 20 Apr 2023 20:56:25 -0600 Subject: [PATCH] Capture '@' also --- core/activitypub/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }