forked from GNUsocial/gnu-social
Fix warning / send current user in to Notice::asActivity
This commit is contained in:
parent
c585a43d6f
commit
5f441842be
@ -374,7 +374,8 @@ class ActivityPlugin extends Plugin
|
|||||||
if (!empty($fave)) {
|
if (!empty($fave)) {
|
||||||
$notice = Notice::staticGet('id', $fave->notice_id);
|
$notice = Notice::staticGet('id', $fave->notice_id);
|
||||||
if (!empty($notice)) {
|
if (!empty($notice)) {
|
||||||
$target = $notice->asActivity();
|
$cur = common_current_user();
|
||||||
|
$target = $notice->asActivity($cur);
|
||||||
if ($target->verb == ActivityVerb::POST) {
|
if ($target->verb == ActivityVerb::POST) {
|
||||||
// "I like the thing you posted"
|
// "I like the thing you posted"
|
||||||
$activity->objects = $target->objects;
|
$activity->objects = $target->objects;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user