We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 5f441842 authored by Zach Copley's avatar Zach Copley

Fix warning / send current user in to Notice::asActivity

parent c585a43d
......@@ -374,7 +374,8 @@ class ActivityPlugin extends Plugin
if (!empty($fave)) {
$notice = Notice::staticGet('id', $fave->notice_id);
if (!empty($notice)) {
$target = $notice->asActivity();
$cur = common_current_user();
$target = $notice->asActivity($cur);
if ($target->verb == ActivityVerb::POST) {
// "I like the thing you posted"
$activity->objects = $target->objects;
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