forked from GNUsocial/gnu-social
Easy comparison of two Profile objects
This commit is contained in:
parent
e567406c9f
commit
f9d82a6ac5
@ -1571,6 +1571,11 @@ class Profile extends Managed_DataObject
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function sameAs(Profile $other)
|
||||||
|
{
|
||||||
|
return $this->getID() === $other->getID();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This will perform shortenLinks with the connected User object.
|
* This will perform shortenLinks with the connected User object.
|
||||||
*
|
*
|
||||||
|
@ -132,6 +132,11 @@ class User extends Managed_DataObject
|
|||||||
return $this->_profile[$this->id];
|
return $this->_profile[$this->id];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function sameAs(Profile $other)
|
||||||
|
{
|
||||||
|
return $this->getProfile()->sameAs($other);
|
||||||
|
}
|
||||||
|
|
||||||
public function getUri()
|
public function getUri()
|
||||||
{
|
{
|
||||||
return $this->uri;
|
return $this->uri;
|
||||||
|
Loading…
Reference in New Issue
Block a user