getAliases should be only a list (numeric array)

This commit is contained in:
Mikael Nordfeldth 2016-02-23 14:33:09 +01:00
parent e16f7d04a8
commit d672547112
2 changed files with 6 additions and 1 deletions

View File

@ -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();

View File

@ -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