]> git.mxchange.org Git - friendica.git/commitdiff
Include new lines in implicit mention regular expression
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 13 Feb 2019 13:08:46 +0000 (08:08 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 13 Feb 2019 13:08:46 +0000 (08:08 -0500)
src/Protocol/ActivityPub/Processor.php

index 25f064fd6ae5d7e30f75a4ba2a6c998484e06787..c3b41a1aec98f134eabfea11ca9cca81eaacdd2c 100644 (file)
@@ -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];
                        }