forked from GNUsocial/gnu-social
getAliases should be only a list (numeric array)
This commit is contained in:
parent
e16f7d04a8
commit
d672547112
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user