Less restrictive for subject capture...again
This commit is contained in:
parent
ed7a728bd7
commit
dd8ab851f2
|
@ -405,7 +405,7 @@ module.exports = class Note extends ActivityPubObject {
|
||||||
// or 32 characters in length, whichever comes first
|
// or 32 characters in length, whichever comes first
|
||||||
// - If not end of string, we'll sub in '...'
|
// - If not end of string, we'll sub in '...'
|
||||||
//
|
//
|
||||||
let subject = message.message.replace(/^@[^ ]+ /, '').trim();
|
let subject = message.message.replace(/^@[^ ,]+ /, '').trim();
|
||||||
const m = /^(.+)\r?\n/.exec(subject);
|
const m = /^(.+)\r?\n/.exec(subject);
|
||||||
if (m && m[1]) {
|
if (m && m[1]) {
|
||||||
subject = m[1];
|
subject = m[1];
|
||||||
|
@ -423,7 +423,7 @@ module.exports = class Note extends ActivityPubObject {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const m = /^(@[^ ]+) ./.exec(message.message);
|
const m = /^(@[^ ,]+) ./.exec(message.message);
|
||||||
if (m && m[1]) {
|
if (m && m[1]) {
|
||||||
message.toUserName = m[1];
|
message.toUserName = m[1];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue