Capture '@' also
This commit is contained in:
parent
821d6cef70
commit
6dde005f21
|
@ -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