Skip to content
Snippets Groups Projects
Commit 92049e80 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Hide old requests from the dashboard


Only show package requests created less than 6 months ago on the
dashboard.

Signed-off-by: default avatarLukas Fleischer <lfleischer@archlinux.org>
parent b3fdd3f8
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ max_rpc_results = 5000
max_depends = 1000
aur_request_ml = aur-requests@archlinux.org
request_idle_time = 1209600
request_archive_time = 15552000
auto_orphan_age = 15552000
auto_delete_age = 86400
source_file_uri = https://aur.archlinux.org/cgit/aur.git/tree/%s?h=%s
......
......@@ -35,7 +35,9 @@ if (isset($_COOKIE["AURSID"])) {
?>
<h3><?= __("My Requests"); ?></h3>
<?php
$results = pkgreq_list(0, 50, uid_from_sid($_COOKIE["AURSID"]));
$archive_time = config_get_int('options', 'request_archive_time');
$from = time() - $archive_time;
$results = pkgreq_list(0, 50, uid_from_sid($_COOKIE["AURSID"]), $from);
$show_headers = false;
include('pkgreq_results.php');
?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment