]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Incorrect use of getByHashKey in HubSub
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 14 Jan 2016 12:15:31 +0000 (13:15 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 14 Jan 2016 12:15:31 +0000 (13:15 +0100)
plugins/OStatus/classes/HubSub.php

index 732ef33743dd83ac11079dcb20cd5795fef9a45d..a46bba5cc68f289b7dd3e2e592d1ed7fd65a7002 100644 (file)
@@ -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.');