Nope, not wanted here:

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 <roland@mxchange.org>
This commit is contained in:
Roland Häder 2018-05-13 23:34:39 +02:00
parent f9a5efbfbe
commit f167730b16

View file

@ -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)) {