From 5f441842be6868d8fed156896da387466a5d7ec0 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 31 Aug 2011 13:10:12 -0700 Subject: [PATCH] Fix warning / send current user in to Notice::asActivity --- plugins/Activity/ActivityPlugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Activity/ActivityPlugin.php b/plugins/Activity/ActivityPlugin.php index b3c3817858..5801c194a6 100644 --- a/plugins/Activity/ActivityPlugin.php +++ b/plugins/Activity/ActivityPlugin.php @@ -374,7 +374,8 @@ class ActivityPlugin extends Plugin if (!empty($fave)) { $notice = Notice::staticGet('id', $fave->notice_id); if (!empty($notice)) { - $target = $notice->asActivity(); + $cur = common_current_user(); + $target = $notice->asActivity($cur); if ($target->verb == ActivityVerb::POST) { // "I like the thing you posted" $activity->objects = $target->objects; -- 2.39.5