aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Deliver.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-11-12 16:08:22 -0800
committerzotlabs <mike@macgirvin.com>2018-11-12 16:08:22 -0800
commit770fdb2b7d095d763d43ffe8d2f6b5b2182673cb (patch)
treeb3e991040552b9f7b1d71487bf24b806b2e86aa3 /Zotlabs/Daemon/Deliver.php
parent171ff54ea407595a85e971f62abc556faf3dec73 (diff)
downloadvolse-hubzilla-770fdb2b7d095d763d43ffe8d2f6b5b2182673cb.tar.gz
volse-hubzilla-770fdb2b7d095d763d43ffe8d2f6b5b2182673cb.tar.bz2
volse-hubzilla-770fdb2b7d095d763d43ffe8d2f6b5b2182673cb.zip
dreport updates
Diffstat (limited to 'Zotlabs/Daemon/Deliver.php')
-rw-r--r--Zotlabs/Daemon/Deliver.php7
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'])