From 2233fa0e46d80fd040328eb391316426f0d5621c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 6 Jun 2020 14:32:51 -0400 Subject: [PATCH] Fix issue with Probe returning local baseurl for probed Twitter accounts --- src/Network/Probe.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 9655590dc..241988dd5 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -441,7 +441,7 @@ class Probe } } - if (!empty(self::$baseurl)) { + if (empty($data['baseurl']) && !empty(self::$baseurl)) { $data['baseurl'] = self::$baseurl; } @@ -1730,6 +1730,8 @@ class Probe */ private static function twitter($uri) { + self::$baseurl = ''; + if (preg_match('=(.*)@twitter.com=i', $uri, $matches)) { $nick = $matches[1]; } elseif (preg_match('=https?://twitter.com/(.*)=i', $uri, $matches)) {