StartAtomPubNewActivity: When a new activity comes in through Atom Pub API
- &$activity: received activity
+- $user: user publishing the entry
EndAtomPubNewActivity: When a new activity comes in through Atom Pub API
- $activity: received activity
+- $user: user publishing the entry
- $notice: notice that was created
StartXrdActionAliases: About to set aliases for the XRD object for a user
$activity = new Activity($dom->documentElement);
- if (Event::handle('StartAtomPubNewActivity', array(&$activity))) {
+ if (Event::handle('StartAtomPubNewActivity', array(&$activity, $this->user))) {
if ($activity->verb != ActivityVerb::POST) {
// TRANS: Client error displayed when not using the POST verb.
$saved = $this->postNote($activity);
- Event::handle('EndAtomPubNewActivity', array($activity, $saved));
+ Event::handle('EndAtomPubNewActivity', array($activity, $this->user, $saved));
}
if (!empty($saved)) {