From f167730b1655ef1736737e9e0a231513a278bbe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Sun, 13 May 2018 23:34:39 +0200 Subject: [PATCH] Nope, not wanted here: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MrPetovan@github: | No, this is fetching all the users who set StatusNet mirroring. it starts | from a pconfig value to get user IDs, which is the opposite of PConfig::get() Signed-off-by: Roland Häder --- statusnet/statusnet.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 1645541e..1859535b 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -730,7 +730,6 @@ function statusnet_cron(App $a) } logger('statusnet: cron_start'); - /// @TODO Use PConfig::get() here maybe? $r = q("SELECT * FROM `pconfig` WHERE `cat` = 'statusnet' AND `k` = 'mirror_posts' AND `v` = '1' ORDER BY RAND() "); if (DBM::is_result($r)) { @@ -747,7 +746,6 @@ function statusnet_cron(App $a) $abandon_limit = date(DateTimeFormat::MYSQL, time() - $abandon_days * 86400); - /// @TODO Use PConfig::get() here maybe? $r = q("SELECT * FROM `pconfig` WHERE `cat` = 'statusnet' AND `k` = 'import' AND `v` ORDER BY RAND()"); if (DBM::is_result($r)) {