aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Cron.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-08-22 20:31:31 -0700
committerredmatrix <git@macgirvin.com>2016-08-22 20:31:31 -0700
commit0b16a5531a757c74da5a12ba4678011ed6c6d221 (patch)
tree155f65228377a0f371f233bd1918d25f1b5a1d62 /Zotlabs/Daemon/Cron.php
parentb7fbd0ee50428402c1d692e74d978cac236f6ae2 (diff)
downloadvolse-hubzilla-0b16a5531a757c74da5a12ba4678011ed6c6d221.tar.gz
volse-hubzilla-0b16a5531a757c74da5a12ba4678011ed6c6d221.tar.bz2
volse-hubzilla-0b16a5531a757c74da5a12ba4678011ed6c6d221.zip
Revert "Merge branch '1.12RC'"
This reverts commit b89c869e7ce2586852607a55717f5388c88e275d, reversing changes made to fbb357ac47f0c5823dd30aa9b955982035cef8ba.
Diffstat (limited to 'Zotlabs/Daemon/Cron.php')
-rw-r--r--Zotlabs/Daemon/Cron.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/Zotlabs/Daemon/Cron.php b/Zotlabs/Daemon/Cron.php
index c66b62f55..c6e82b13a 100644
--- a/Zotlabs/Daemon/Cron.php
+++ b/Zotlabs/Daemon/Cron.php
@@ -64,16 +64,12 @@ class Cron {
// delete expired access tokens
- $r = q("select atoken_id from atoken where atoken_expires != '%s' && atoken_expires < %s",
+ q("delete from atoken where atoken_expires != '%s' && atoken_expires < %s",
dbesc(NULL_DATE),
db_utcnow()
);
- if($r) {
- require_once('include/security.php');
- foreach($r as $rr) {
- atoken_delete($rr['atoken_id']);
- }
- }
+
+
// Ensure that every channel pings a directory server once a month. This way we can discover
// channels and sites that quietly vanished and prevent the directory from accumulating stale