From: Mikael Nordfeldth Date: Tue, 23 Feb 2016 13:33:09 +0000 (+0100) Subject: getAliases should be only a list (numeric array) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d67254711264bbe82c80a9d2513a26f0ddf2c79d;p=quix0rs-gnu-social.git getAliases should be only a list (numeric array) --- diff --git a/classes/Managed_DataObject.php b/classes/Managed_DataObject.php index cab7edd5c7..0857bb11f6 100644 --- a/classes/Managed_DataObject.php +++ b/classes/Managed_DataObject.php @@ -419,6 +419,11 @@ abstract class Managed_DataObject extends Memcached_DataObject * in Profile and Notice classes. */ public function getAliases() + { + return array_keys($this->getAliasesWithIDs()); + } + + public function getAliasesWithIDs() { $aliases = array(); $aliases[$this->getUri()] = $this->getID(); diff --git a/plugins/WebFinger/lib/webfingerresource.php b/plugins/WebFinger/lib/webfingerresource.php index 3afbd41713..b7bace36d2 100644 --- a/plugins/WebFinger/lib/webfingerresource.php +++ b/plugins/WebFinger/lib/webfingerresource.php @@ -31,7 +31,7 @@ abstract class WebFingerResource public function getAliases() { - $aliases = $this->object->getAliases(); + $aliases = $this->object->getAliasesWithIDs(); // Some sites have changed from http to https and still want // (because remote sites look for it) verify that they are still