]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix warning / send current user in to Notice::asActivity
authorZach Copley <zach@status.net>
Wed, 31 Aug 2011 20:10:12 +0000 (13:10 -0700)
committerZach Copley <zach@status.net>
Wed, 31 Aug 2011 20:10:12 +0000 (13:10 -0700)
plugins/Activity/ActivityPlugin.php

index b3c38178587d1bd21b5bce2e331f6b18f59651ed..5801c194a6de99b9371f47e8eab091857a65ff5f 100644 (file)
@@ -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;