]> git.mxchange.org Git - friendica.git/commitdiff
Better function name
authorMichael <heluecht@pirati.ca>
Mon, 11 Nov 2019 23:13:36 +0000 (23:13 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 11 Nov 2019 23:13:36 +0000 (23:13 +0000)
src/Model/Photo.php
src/Protocol/ActivityPub/Transmitter.php

index bf0acf53ebc937b94151145fc35c0d7ce19fc1ea..db3c4d429bb29680989524d419ae4f4d0b939e40 100644 (file)
@@ -723,7 +723,7 @@ class Photo extends BaseObject
         * @return boolean
         * @throws \Exception
         */
-       public static function isLocalLink($name)
+       public static function isLocalPage($name)
        {
                $a = \get_app();
                $base = $a->getBaseURL();
index 3f962b8cf95ca25a3680c850dceaf12b806678c1..a7be1e9c5294b399fdb811d2dcaf526e21162aa8 100644 (file)
@@ -1115,7 +1115,7 @@ class Transmitter
                        '/\[url=([^\[\]]*)\]\[img\](.*)\[\/img\]\[\/url\]/Usi',
                        function ($match) {
                                // We remove the link when it is a link to a local photo page
-                               if (Photo::isLocalLink($match[1])) {
+                               if (Photo::isLocalPage($match[1])) {
                                        return '';
                                }
                                // otherwise we just return the link