diff options
author | zottel <github@zottel.net> | 2015-09-23 08:59:28 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2015-09-23 08:59:28 +0200 |
commit | 0bfdb45b414b477573b6389e7730d8f93f53993e (patch) | |
tree | 114c0dc95c4cf3baa514de13ca2ed0c1759dd388 /include/notifier.php | |
parent | 032ef0ca3495cf4a1caaf1a6ea8000c17aba0ba5 (diff) | |
parent | f506f73d3fc80fb68f63f654b5e93a6920780d6f (diff) | |
download | volse-hubzilla-0bfdb45b414b477573b6389e7730d8f93f53993e.tar.gz volse-hubzilla-0bfdb45b414b477573b6389e7730d8f93f53993e.tar.bz2 volse-hubzilla-0bfdb45b414b477573b6389e7730d8f93f53993e.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/notifier.php')
-rw-r--r-- | include/notifier.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/notifier.php b/include/notifier.php index e16f80ecf..fd95d53e2 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -662,6 +662,18 @@ function notifier_run($argv, $argc){ dbesc($n), dbesc(json_encode($encoded_item)) ); + // only create delivery reports for normal undeleted items + if(array_key_exists('postopts',$target_item) && (! $target_item['item_deleted'])) { + q("insert into dreport ( dreport_mid, dreport_site, dreport_recip, dreport_result, dreport_time, dreport_xchan, dreport_queue ) values ( '%s','%s','%s','%s','%s','%s','%s' ) ", + dbesc($target_item['mid']), + dbesc($hub['hubloc_host']), + dbesc($hub['hubloc_host']), + dbesc('queued'), + dbesc(datetime_convert()), + dbesc($channel['channel_hash']), + dbesc($hash) + ); + } } $deliver[] = $hash; |