aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-10-15 16:02:37 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-10-15 16:02:37 -0700
commit7517c76ae48ddad741fe61c41dd6dcc09421d160 (patch)
treee4030f6419432e8644a4897a38703559a4ba1889 /mod
parentbf5a1f662a4f00e8376613fa387c843d539c7433 (diff)
parente26f771cbe5717f9db9c5dde897f1f6e79b3a932 (diff)
downloadvolse-hubzilla-7517c76ae48ddad741fe61c41dd6dcc09421d160.tar.gz
volse-hubzilla-7517c76ae48ddad741fe61c41dd6dcc09421d160.tar.bz2
volse-hubzilla-7517c76ae48ddad741fe61c41dd6dcc09421d160.zip
Merge https://github.com/redmatrix/redmatrix into pending_merge
Conflicts: install/update.php
Diffstat (limited to 'mod')
-rw-r--r--mod/mail.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/mail.php b/mod/mail.php
index 23d1f5224..2fbd96fdb 100644
--- a/mod/mail.php
+++ b/mod/mail.php
@@ -97,7 +97,10 @@ function mail_post(&$a) {
$ret = send_message(0, $recipient, $body, $subject, $replyto, $expires);
- if(! $ret['success']) {
+ if($ret['success']) {
+ build_sync_packet(0,array('conv' => array($ret['conv']),'mail' => array(encode_mail($ret['mail'],true))));
+ }
+ else {
notice($ret['message']);
}