From: Hypolite Petovan Date: Wed, 13 Feb 2019 13:08:46 +0000 (-0500) Subject: Include new lines in implicit mention regular expression X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=63f083f6fb420c026629b9c23a92e9ba9d9858f2;p=friendica.git Include new lines in implicit mention regular expression --- diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 25f064fd6a..c3b41a1aec 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -692,7 +692,7 @@ class Processor $kept_mentions = []; // Extract one prepended mention at a time from the body - while(preg_match('#^(@\[url=([^\]]+)].*?\[\/url]\s)(.*)#mi', $body, $matches)) { + while(preg_match('#^(@\[url=([^\]]+)].*?\[\/url]\s)(.*)#mis', $body, $matches)) { if (!in_array($matches[2], $implicit_mentions) ) { $kept_mentions[] = $matches[1]; }