aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-18 21:10:59 +0000
committerMario <mario@mariovavti.com>2021-01-18 21:10:59 +0000
commit4e9d8e1a8342d7ae603a3d6caf714ce8b43b00ac (patch)
treee113ff7b0d57ae7d2282e581f95b7a95d4a1676e /Zotlabs
parent6083bfea2f449a910da3622f5dac757a82379fc0 (diff)
downloadvolse-hubzilla-4e9d8e1a8342d7ae603a3d6caf714ce8b43b00ac.tar.gz
volse-hubzilla-4e9d8e1a8342d7ae603a3d6caf714ce8b43b00ac.tar.bz2
volse-hubzilla-4e9d8e1a8342d7ae603a3d6caf714ce8b43b00ac.zip
fix abandon days setting for onepoll
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Daemon/Cron.php5
-rw-r--r--Zotlabs/Daemon/Poller.php2
2 files changed, 1 insertions, 6 deletions
diff --git a/Zotlabs/Daemon/Cron.php b/Zotlabs/Daemon/Cron.php
index e8fa3244f..cd7a710d3 100644
--- a/Zotlabs/Daemon/Cron.php
+++ b/Zotlabs/Daemon/Cron.php
@@ -170,11 +170,6 @@ class Cron {
require_once('include/attach.php');
attach_upgrade();
- $abandon_days = intval(get_config('system', 'account_abandon_days'));
- if ($abandon_days < 1)
- $abandon_days = 0;
-
-
// once daily run birthday_updates and then expire in background
// FIXME: add birthday updates, both locally and for xprof for use
diff --git a/Zotlabs/Daemon/Poller.php b/Zotlabs/Daemon/Poller.php
index 8cbdfab0d..762f1349c 100644
--- a/Zotlabs/Daemon/Poller.php
+++ b/Zotlabs/Daemon/Poller.php
@@ -57,7 +57,7 @@ class Poller {
reload_plugins();
// Only poll from those with suitable relationships
-
+ $abandon_days = intval(get_config('system', 'account_abandon_days', 0));
$abandon_sql = (($abandon_days)
? sprintf(" AND account_lastlog > %s - INTERVAL %s ", db_utcnow(), db_quoteinterval(intval($abandon_days) . ' DAY'))
: ''