summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-02-15 07:20:50 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2017-02-15 07:23:06 +0100
commit92049e8061d71dfe89b4cbd53a39d7ae74ac328a (patch)
treedff266a9ac86d16ad55a9c43ff104b8115f3ec99 /web
parentb3fdd3f80389e2708dc64414f0e48ef7120fd852 (diff)
downloadaur-92049e8061d71dfe89b4cbd53a39d7ae74ac328a.tar.gz
aur-92049e8061d71dfe89b4cbd53a39d7ae74ac328a.tar.xz
Hide old requests from the dashboard
Only show package requests created less than 6 months ago on the dashboard. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web')
-rw-r--r--web/html/home.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/html/home.php b/web/html/home.php
index ee7caf77..26754916 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -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');
?>