Fix implicit mention detection regular expression flags in ActivityPub\Processor

This commit is contained in:
Hypolite Petovan 2019-03-09 09:04:11 -05:00
parent af77af0446
commit 70782b3977

View File

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