Fix implicit mention detection regular expression flags in ActivityPub\Processor
This commit is contained in:
parent
af77af0446
commit
70782b3977
|
@ -710,7 +710,7 @@ class Processor
|
||||||
$kept_mentions = [];
|
$kept_mentions = [];
|
||||||
|
|
||||||
// Extract one prepended mention at a time from the body
|
// Extract one prepended mention at a time from the body
|
||||||
while(preg_match('#^(@\[url=([^\]]+)].*?\[\/url]\s)(.*)#mis', $body, $matches)) {
|
while(preg_match('#^(@\[url=([^\]]+)].*?\[\/url]\s)(.*)#is', $body, $matches)) {
|
||||||
if (!in_array($matches[2], $potential_mentions) ) {
|
if (!in_array($matches[2], $potential_mentions) ) {
|
||||||
$kept_mentions[] = $matches[1];
|
$kept_mentions[] = $matches[1];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user