Commit af12037a authored by Evan Prodromou's avatar Evan Prodromou

fix errors with fave activities

parent c712eefe
......@@ -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)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment