From e7ad9bf17a27be7c44511926fcb5384877d97a69 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 19 Jul 2011 16:47:37 -0400 Subject: [PATCH] ensure a shared item's author element --- plugins/OStatus/classes/Ostatus_profile.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index cbaae65c3f..f8ac5e050f 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -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. -- 2.39.5