]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Embarrasing copy-paste gone too fast
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 28 Mar 2016 14:25:29 +0000 (16:25 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 28 Mar 2016 14:25:29 +0000 (16:25 +0200)
plugins/OStatus/classes/Ostatus_profile.php

index e8ac16fb1d553b2e36b75c617750d9a762f48649..c370462685890992eef02d94c879a3c157ad083a 100644 (file)
@@ -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.');
         }