We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d6725471 authored by mattl's avatar mattl

getAliases should be only a list (numeric array)

parent e16f7d04
......@@ -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();
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment