Incorrect use of getByHashKey in HubSub

This commit is contained in:
Mikael Nordfeldth 2016-01-14 13:15:31 +01:00
parent f092026541
commit 59e75ef966

View 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.');