From af12037a6f687b4edb8a78fe7fce9c58f5c304ce Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 23 Aug 2011 00:23:02 -0400 Subject: [PATCH] fix errors with fave activities --- plugins/Activity/ActivityPlugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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))); } -- 2.39.5