aboutsummaryrefslogtreecommitdiff
path: root/app/Models
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-09-11 15:06:33 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-09-11 15:06:33 +0200
commit2a5aa34ad2796df00fa09de41361c20764ccdfa8 (patch)
tree8c933ff84cba91301e3dd7cb6a19015589194b6d /app/Models
parentc3589cac2d41501af1bd916c4689cf1ea4b58038 (diff)
Better control of number of entries per page or RSS feed
https://github.com/FreshRSS/FreshRSS/issues/1249 * Since X hours: `https://freshrss.example/i/?a=rss&hours=3` * Explicit number: `https://freshrss.example/i/?a=rss&nb=10` * Limited by `min_posts_per_rss` and `max_posts_per_rss` in user config
Diffstat (limited to 'app/Models')
-rw-r--r--app/Models/Context.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php
index 2a58bd4ba..33e65a619 100644
--- a/app/Models/Context.php
+++ b/app/Models/Context.php
@@ -35,6 +35,7 @@ class FreshRSS_Context {
public static $first_id = '';
public static $next_id = '';
public static $id_max = '';
+ public static $sinceHours = 0;
/**
* Initialize the context.