summaryrefslogtreecommitdiff
path: root/actions/apidirectmessagenew.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-15 10:31:25 -0500
committerEvan Prodromou <evan@status.net>2009-12-15 10:31:25 -0500
commit797a0d79fbf4e105ee4ccdce093c1595c1f08a4a (patch)
treed144137e9607e6ee1144dae4e993b4f22335fa0b /actions/apidirectmessagenew.php
parent19bb9a04d171fe2a8d87a51c0267c5670cb0f5bf (diff)
create a method for notification for new messages, and use it
Diffstat (limited to 'actions/apidirectmessagenew.php')
-rw-r--r--actions/apidirectmessagenew.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/apidirectmessagenew.php b/actions/apidirectmessagenew.php
index e6c39ce4a..b9ac92d77 100644
--- a/actions/apidirectmessagenew.php
+++ b/actions/apidirectmessagenew.php
@@ -175,7 +175,7 @@ class ApiDirectMessageNewAction extends ApiAuthAction
return;
}
- mail_notify_message($message, $this->user, $this->other);
+ $message->notify();
if ($this->format == 'xml') {
$this->showSingleXmlDirectMessage($message);