]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ensure a shared item's author element
authorEvan Prodromou <evan@status.net>
Tue, 19 Jul 2011 20:47:37 +0000 (16:47 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 19 Jul 2011 20:47:37 +0000 (16:47 -0400)
plugins/OStatus/classes/Ostatus_profile.php

index cbaae65c3fbf4c1c8216e128a6bebd6bb4312fa1..f8ac5e050fcec6318d6c7e208cc4c6132c4fad9e 100644 (file)
@@ -525,9 +525,11 @@ class Ostatus_profile extends Managed_DataObject
             throw new ClientException(_m("Can only handle shared activities."));
         }
 
+        $other = Ostatus_profile::ensureActivityObjectProfile($shared->actor);
+
         // Save the item (or check for a dupe)
 
-        $this->processActivity($shared, $method);
+        $other->processActivity($shared, $method);
         
         // XXX: process*() should return the new or existing notice. They don't, so we have to
         // go fishing for it now.