include saved notice in atompub events

This commit is contained in:
Evan Prodromou 2010-12-27 22:11:30 -08:00
parent a85bbd9088
commit 0bcc3ee005
1 changed files with 3 additions and 1 deletions

View File

@ -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.