]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #5967 from annando/ap-nick
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 19 Oct 2018 14:38:51 +0000 (10:38 -0400)
committerGitHub <noreply@github.com>
Fri, 19 Oct 2018 14:38:51 +0000 (10:38 -0400)
Fix function naming

src/Protocol/ActivityPub/Transmitter.php

index 2a930fcc6f337ea8e5a2a7557aaefc5fbf8fe739..98422f3ad0895f177cbc465b3649437732711ece 100644 (file)
@@ -749,7 +749,7 @@ class Transmitter
         * @param array $match Matching values for the callback
         * @return string Replaced mention
         */
-       private static function MentionCallback($match)
+       private static function mentionCallback($match)
        {
                if (empty($match[1])) {
                        return;
@@ -872,7 +872,7 @@ class Transmitter
                }
 
                $regexp = "/[@!]\[url\=([^\[\]]*)\].*?\[\/url\]/ism";
-               $body = preg_replace_callback($regexp, ['self', 'MentionCallback'], $body);
+               $body = preg_replace_callback($regexp, ['self', 'mentionCallback'], $body);
 
                $data['content'] = BBCode::convert($body, false, 7);
                $data['source'] = ['content' => $item['body'], 'mediaType' => "text/bbcode"];