diff options
author | zotlabs <mike@macgirvin.com> | 2018-11-12 16:08:22 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-11-12 16:08:22 -0800 |
commit | 770fdb2b7d095d763d43ffe8d2f6b5b2182673cb (patch) | |
tree | b3e991040552b9f7b1d71487bf24b806b2e86aa3 /Zotlabs/Daemon | |
parent | 171ff54ea407595a85e971f62abc556faf3dec73 (diff) | |
download | volse-hubzilla-770fdb2b7d095d763d43ffe8d2f6b5b2182673cb.tar.gz volse-hubzilla-770fdb2b7d095d763d43ffe8d2f6b5b2182673cb.tar.bz2 volse-hubzilla-770fdb2b7d095d763d43ffe8d2f6b5b2182673cb.zip |
dreport updates
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r-- | Zotlabs/Daemon/Deliver.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Zotlabs/Daemon/Deliver.php b/Zotlabs/Daemon/Deliver.php index b809cba91..43f426eb7 100644 --- a/Zotlabs/Daemon/Deliver.php +++ b/Zotlabs/Daemon/Deliver.php @@ -2,6 +2,8 @@ namespace Zotlabs\Daemon; +use Zotlabs\Lib\DReport; + require_once('include/zot.php'); require_once('include/queue_fn.php'); @@ -58,11 +60,12 @@ class Deliver { foreach($dresult as $xx) { if(is_array($xx) && array_key_exists('message_id',$xx)) { - if(delivery_report_is_storable($xx)) { - q("insert into dreport ( dreport_mid, dreport_site, dreport_recip, dreport_result, dreport_time, dreport_xchan ) values ( '%s', '%s','%s','%s','%s','%s' ) ", + if(DReport::is_storable($xx)) { + q("insert into dreport ( dreport_mid, dreport_site, dreport_recip, dreport_name, dreport_result, dreport_time, dreport_xchan ) values ( '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ", dbesc($xx['message_id']), dbesc($xx['location']), dbesc($xx['recipient']), + dbesc(($xx['name']) ? $xx['name'] : EMPTY_STR), dbesc($xx['status']), dbesc(datetime_convert($xx['date'])), dbesc($xx['sender']) |