From: Mikael Nordfeldth Date: Thu, 14 Jan 2016 12:15:31 +0000 (+0100) Subject: Incorrect use of getByHashKey in HubSub X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=59e75ef96697af253713d53f5b272a73cc8c13ff;p=quix0rs-gnu-social.git Incorrect use of getByHashKey in HubSub --- 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.');