diff options
author | redmatrix <git@macgirvin.com> | 2016-01-07 14:27:06 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-01-07 14:27:06 -0800 |
commit | bf99906386a7503de83d9683dd58cd7821456a18 (patch) | |
tree | 77c924e0d8ff622403d556a470f68dab4f329633 /include/notifier.php | |
parent | 3c8818417798aaa5791f8581059883ad6431a0eb (diff) | |
download | volse-hubzilla-bf99906386a7503de83d9683dd58cd7821456a18.tar.gz volse-hubzilla-bf99906386a7503de83d9683dd58cd7821456a18.tar.bz2 volse-hubzilla-bf99906386a7503de83d9683dd58cd7821456a18.zip |
provide admin toggle to disable delivery reports
Diffstat (limited to 'include/notifier.php')
-rw-r--r-- | include/notifier.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/notifier.php b/include/notifier.php index 32d702cb5..5260e629f 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -578,7 +578,7 @@ function notifier_run($argv, $argc){ )); // only create delivery reports for normal undeleted items - if(is_array($target_item) && array_key_exists('postopts',$target_item) && (! $target_item['item_deleted'])) { + if(is_array($target_item) && array_key_exists('postopts',$target_item) && (! $target_item['item_deleted']) && (! get_config('system','disable_dreport'))) { 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']), |