From 59e75ef96697af253713d53f5b272a73cc8c13ff Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 14 Jan 2016 13:15:31 +0100 Subject: [PATCH] Incorrect use of getByHashKey in HubSub --- plugins/OStatus/classes/HubSub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/OStatus/classes/HubSub.php b/plugins/OStatus/classes/HubSub.php index 732ef33743..a46bba5cc6 100644 --- a/plugins/OStatus/classes/HubSub.php +++ b/plugins/OStatus/classes/HubSub.php @@ -306,7 +306,7 @@ class HubSub extends Managed_DataObject if ('http' === parse_url($this->callback, PHP_URL_SCHEME)) { // Test if the feed callback for this node has migrated to HTTPS $httpscallback = preg_replace('/^http/', 'https', $this->callback, 1); - $alreadyreplaced = self::getByHashKey(self::hashkey($this->getTopic(), $httpscallback)); + $alreadyreplaced = self::getByHashKey($this->getTopic(), $httpscallback); if ($alreadyreplaced instanceof HubSub) { $this->delete(); throw new AlreadyFulfilledException('The remote side has already established an HTTPS callback, deleting the legacy HTTP entry.'); -- 2.39.5