Skip to content

In exporting of project's news as RSS (rss_main.php), remove time limit. #5610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion html/inc/forum_rss.inc
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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);
?>
Loading