From 8997361609017e1bc73f8241971c118fb71c70f2 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 11 Nov 2019 23:13:36 +0000 Subject: [PATCH] Better function name --- src/Model/Photo.php | 2 +- src/Protocol/ActivityPub/Transmitter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Photo.php b/src/Model/Photo.php index bf0acf53e..db3c4d429 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -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(); diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 3f962b8cf..a7be1e9c5 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -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