From: Evan Prodromou Date: Tue, 23 Aug 2011 04:23:02 +0000 (-0400) Subject: fix errors with fave activities X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=af12037a6f687b4edb8a78fe7fce9c58f5c304ce;p=quix0rs-gnu-social.git fix errors with fave activities --- diff --git a/plugins/Activity/ActivityPlugin.php b/plugins/Activity/ActivityPlugin.php index e6e9ca82b2..7aa776dd9a 100644 --- a/plugins/Activity/ActivityPlugin.php +++ b/plugins/Activity/ActivityPlugin.php @@ -141,8 +141,8 @@ class ActivityPlugin extends Plugin if (!empty($user)) { $author = $notice->getProfile(); - $fave = Fave::staticGet(array('user_id' => $user->id, - 'notice_id' => $notice->id)); + $fave = Fave::pkeyGet(array('user_id' => $user->id, + 'notice_id' => $notice->id)); $rendered = sprintf(_m('%s liked %s\'s update.'), $profile->profileurl, @@ -160,7 +160,7 @@ class ActivityPlugin extends Plugin 'activity', array('rendered' => $rendered, 'uri' => $fave->getURI(), - 'verb' => ActivityVerb::FAVOR, + 'verb' => ActivityVerb::FAVORITE, 'object_type' => (($notice->verb == ActivityVerb::POST) ? $notice->object_type : ActivityObject::ACTIVITY))); }