Less restrictive for subject capture

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

View File

@ -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];