Skip to content

Commit

Permalink
Merge pull request #5610 from BOINC/dpa_rss3
Browse files Browse the repository at this point in the history
In exporting of project's news as RSS (rss_main.php), remove time limit.
  • Loading branch information
AenBleidd committed May 5, 2024
2 parents 4609036 + 5ad418b commit a2630f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion html/inc/forum_rss.inc
Expand Up @@ -69,7 +69,11 @@ function forum_rss($forumid, $userid, $threads_only, $ndays) {
$clause .= " and owner=$userid";
}

$tlimit = time() - $ndays*86400;
if ($ndays) {
$tlimit = time() - $ndays*86400;
} else {
$tlimit = 0;
}

if ($threads_only) {
$q = "$clause and hidden=0 and create_time > $tlimit order by create_time desc";
Expand Down
3 changes: 2 additions & 1 deletion html/user/rss_main.php
Expand Up @@ -25,5 +25,6 @@
exit;
}

forum_rss($forum->id, 0, 1, 90);
$ndays = get_int('ndays', true);
forum_rss($forum->id, 0, 1, $ndays);
?>

0 comments on commit a2630f1

Please sign in to comment.