From: Zach Copley Date: Wed, 31 Aug 2011 20:10:12 +0000 (-0700) Subject: Fix warning / send current user in to Notice::asActivity X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5f441842be6868d8fed156896da387466a5d7ec0;p=quix0rs-gnu-social.git Fix warning / send current user in to Notice::asActivity --- 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;