forked from GNUsocial/gnu-social
fix errors with fave activities
This commit is contained in:
parent
c712eefe14
commit
af12037a6f
@ -141,8 +141,8 @@ class ActivityPlugin extends Plugin
|
|||||||
if (!empty($user)) {
|
if (!empty($user)) {
|
||||||
|
|
||||||
$author = $notice->getProfile();
|
$author = $notice->getProfile();
|
||||||
$fave = Fave::staticGet(array('user_id' => $user->id,
|
$fave = Fave::pkeyGet(array('user_id' => $user->id,
|
||||||
'notice_id' => $notice->id));
|
'notice_id' => $notice->id));
|
||||||
|
|
||||||
$rendered = sprintf(_m('<em><a href="%s">%s</a> liked <a href="%s">%s\'s update</a></em>.'),
|
$rendered = sprintf(_m('<em><a href="%s">%s</a> liked <a href="%s">%s\'s update</a></em>.'),
|
||||||
$profile->profileurl,
|
$profile->profileurl,
|
||||||
@ -160,7 +160,7 @@ class ActivityPlugin extends Plugin
|
|||||||
'activity',
|
'activity',
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
'uri' => $fave->getURI(),
|
'uri' => $fave->getURI(),
|
||||||
'verb' => ActivityVerb::FAVOR,
|
'verb' => ActivityVerb::FAVORITE,
|
||||||
'object_type' => (($notice->verb == ActivityVerb::POST) ?
|
'object_type' => (($notice->verb == ActivityVerb::POST) ?
|
||||||
$notice->object_type : ActivityObject::ACTIVITY)));
|
$notice->object_type : ActivityObject::ACTIVITY)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user