]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix errors with fave activities
authorEvan Prodromou <evan@status.net>
Tue, 23 Aug 2011 04:23:02 +0000 (00:23 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 23 Aug 2011 04:23:02 +0000 (00:23 -0400)
plugins/Activity/ActivityPlugin.php

index e6e9ca82b2a886e91266fc946c1321daeb3870d7..7aa776dd9a6bfebb1d3109bdaeee7bc31dc14d6c 100644 (file)
@@ -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('<em><a href="%s">%s</a> liked <a href="%s">%s\'s update</a></em>.'),
                                                $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)));
         }