Build (un)moderated files data during daily expire. Future need to automatically update changes to moderation flags.
This commit is contained in:
parent
2508c5e56f
commit
78de57a360
|
@ -2049,6 +2049,9 @@ function is_moderated($newsgroups)
|
|||
}
|
||||
}
|
||||
}
|
||||
if($CONFIG['remote_server'] == '') {
|
||||
return false;
|
||||
}
|
||||
$ns = nntp2_open();
|
||||
if (! $ns) {
|
||||
return false;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue