forked from GNUsocial/gnu-social
add mail notification for dm command results
This commit is contained in:
parent
d40f0931aa
commit
19bb9a04d1
@ -372,6 +372,7 @@ class MessageCommand extends Command
|
|||||||
}
|
}
|
||||||
$message = Message::saveNew($this->user->id, $other->id, $this->text, $channel->source());
|
$message = Message::saveNew($this->user->id, $other->id, $this->text, $channel->source());
|
||||||
if ($message) {
|
if ($message) {
|
||||||
|
mail_notify_message($message, $this->user, $other);
|
||||||
$channel->output($this->user, sprintf(_('Direct message to %s sent'), $this->other));
|
$channel->output($this->user, sprintf(_('Direct message to %s sent'), $this->other));
|
||||||
} else {
|
} else {
|
||||||
$channel->error($this->user, _('Error sending direct message.'));
|
$channel->error($this->user, _('Error sending direct message.'));
|
||||||
|
Loading…
Reference in New Issue
Block a user