aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-29 16:56:18 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-29 16:56:18 -0700
commit0b012e2995322d571ba2764055a48a16f4a98c39 (patch)
tree589e30729afa90014d1efb01ad61754d01bb0e33 /include/notifier.php
parent090dae46e500634cec8f3718fbb83d5dbb8f9690 (diff)
downloadvolse-hubzilla-0b012e2995322d571ba2764055a48a16f4a98c39.tar.gz
volse-hubzilla-0b012e2995322d571ba2764055a48a16f4a98c39.tar.bz2
volse-hubzilla-0b012e2995322d571ba2764055a48a16f4a98c39.zip
some prep work
Diffstat (limited to 'include/notifier.php')
-rw-r--r--include/notifier.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/notifier.php b/include/notifier.php
index 46f9eb1de..ecd2ac86f 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -354,7 +354,7 @@ function notifier_run($argv, $argc){
return;
}
- $s = q("select * from channel where channel_id = %d limit 1",
+ $s = q("select * from channel left join xchan on channel_hash = xchan_hash where channel_id = %d limit 1",
intval($target_item['uid'])
);
if($s)
@@ -509,6 +509,15 @@ function notifier_run($argv, $argc){
$recip_list[] = $d['xchan_addr'] . ' (' . $d['xchan_hash'] . ')';
if($private)
$env_recips[] = array('guid' => $d['xchan_guid'],'guid_sig' => $d['xchan_guid_sig'],'hash' => $d['xchan_hash']);
+
+ if($d['xchan_network'] === 'mail' && $normal_mode) {
+ $delivery_options = get_xconfig($d['xchan_hash'],'system','delivery_mode');
+ if(! $delivery_options)
+ format_and_send_email($channel,$d,$target_item);
+ }
+
+
+
}
}