aboutsummaryrefslogtreecommitdiffstats
path: root/include/ItemObject.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-07 14:27:06 -0800
committerredmatrix <git@macgirvin.com>2016-01-07 14:27:06 -0800
commitbf99906386a7503de83d9683dd58cd7821456a18 (patch)
tree77c924e0d8ff622403d556a470f68dab4f329633 /include/ItemObject.php
parent3c8818417798aaa5791f8581059883ad6431a0eb (diff)
downloadvolse-hubzilla-bf99906386a7503de83d9683dd58cd7821456a18.tar.gz
volse-hubzilla-bf99906386a7503de83d9683dd58cd7821456a18.tar.bz2
volse-hubzilla-bf99906386a7503de83d9683dd58cd7821456a18.zip
provide admin toggle to disable delivery reports
Diffstat (limited to 'include/ItemObject.php')
-rw-r--r--include/ItemObject.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php
index 8be99d91e..1b7b2ce78 100644
--- a/include/ItemObject.php
+++ b/include/ItemObject.php
@@ -264,7 +264,7 @@ class Item extends BaseObject {
if($keep_reports === 0)
$keep_reports = 30;
- if(strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC',"now - $keep_reports days")) > 0)
+ if((! get_config('system','disable_dreport')) && strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC',"now - $keep_reports days")) > 0)
$dreport = t('Delivery Report');
if(strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC','now - 12 hours')) > 0)