forked from GNUsocial/gnu-social
Embarrasing copy-paste gone too fast
This commit is contained in:
parent
88e2f739a9
commit
16517f019a
@ -1281,8 +1281,8 @@ class Ostatus_profile extends Managed_DataObject
|
||||
*/
|
||||
public function updateFromActivityObject(ActivityObject $object, array $hints=array())
|
||||
{
|
||||
if (self::getActivityObjectProfileURI($actorObj) !== $this->getUri()) {
|
||||
common_log(LOG_ERR, 'Trying to update profile with URI '._ve($this->getUri()).' from ActivityObject with URI: '._ve(self::getActivityObjectProfileURI($actorObj)));
|
||||
if (self::getActivityObjectProfileURI($object) !== $this->getUri()) {
|
||||
common_log(LOG_ERR, 'Trying to update profile with URI '._ve($this->getUri()).' from ActivityObject with URI: '._ve(self::getActivityObjectProfileURI($object)));
|
||||
// FIXME: Maybe not AuthorizationException?
|
||||
throw new AuthorizationException('Trying to update profile from ActivityObject with different URI.');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user