Build (un)moderated files data during daily expire. Future need to automatically update changes to moderation flags.

This commit is contained in:
Retro_Guy 2024-04-17 04:39:20 -07:00
parent 2508c5e56f
commit 78de57a360
2 changed files with 6 additions and 0 deletions

View File

@ -2049,6 +2049,9 @@ function is_moderated($newsgroups)
}
}
}
if($CONFIG['remote_server'] == '') {
return false;
}
$ns = nntp2_open();
if (! $ns) {
return false;

View File

@ -151,6 +151,9 @@ function vacuum_group_database($group)
$data_stmt->execute();
$data_dbh = null;
}
// Check for moderation flag here. Yes, in vacuum.
is_moderated($group);
file_put_contents($logfile, "\n" . format_log_date() . " " . $config_name . " " . $group . " Checked for moderation flag", FILE_APPEND);
}
function convert_max_articles_to_days($group)