From ed7a728bd72d36baf66980ab54b35dc04e0b11a8 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Fri, 21 Apr 2023 11:56:28 -0600 Subject: [PATCH] Less restrictive for subject capture --- 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 c3a97fa3..d83c30ab 100644 --- a/core/activitypub/note.js +++ b/core/activitypub/note.js @@ -405,7 +405,7 @@ module.exports = class Note extends ActivityPubObject { // or 32 characters in length, whichever comes first // - If not end of string, we'll sub in '...' // - let subject = message.message.replace(`@${message.toUserName} `, '').trim(); + let subject = message.message.replace(/^@[^ ]+ /, '').trim(); const m = /^(.+)\r?\n/.exec(subject); if (m && m[1]) { subject = m[1];