diff --git a/actions/apitimelineuser.php b/actions/apitimelineuser.php index 1573f74897..5809df3b5e 100644 --- a/actions/apitimelineuser.php +++ b/actions/apitimelineuser.php @@ -324,7 +324,9 @@ class ApiTimelineUserAction extends ApiBareAuthAction $activity = new Activity($dom->documentElement); - if (Event::handle('StartAtomPubNewActivity', array(&$activity, $this->user))) { + $saved = null; + + if (Event::handle('StartAtomPubNewActivity', array(&$activity, $this->user, &$saved))) { if ($activity->verb != ActivityVerb::POST) { // TRANS: Client error displayed when not using the POST verb.