Avoid display of articles with out of bounds dates in overboard

This commit is contained in:
Retro_Guy 2021-12-19 04:25:53 +00:00
parent 1d4c0ceda9
commit 14c7aaa9dc
1 changed files with 5 additions and 0 deletions

View File

@ -232,6 +232,11 @@ foreach($files as $article) {
preg_match('/Date:.*/', $header, $articledate);
$dateoutput = explode("Date: ",$articledate[0]);
$thisdate = strtotime($dateoutput[1]);
if(($thisdate > time()) || ($thisdate < $oldest)) {
continue;
}
$local_poster=false;
if(preg_match('/X-Rslight-Site:.*/', $header, $site)) {
$site_match = explode("X-Rslight-Site: ", $site[0]);