diff options
| author | 2016-09-11 15:06:33 +0200 | |
|---|---|---|
| committer | 2016-09-11 15:06:33 +0200 | |
| commit | 2a5aa34ad2796df00fa09de41361c20764ccdfa8 (patch) | |
| tree | 8c933ff84cba91301e3dd7cb6a19015589194b6d /app/layout/layout.phtml | |
| parent | c3589cac2d41501af1bd916c4689cf1ea4b58038 (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/layout/layout.phtml')
| -rw-r--r-- | app/layout/layout.phtml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml index 4d9ad5458..1f11e0af1 100644 --- a/app/layout/layout.phtml +++ b/app/layout/layout.phtml @@ -42,6 +42,9 @@ } if (isset($this->rss_title)) { $url_rss = $url_base; $url_rss['a'] = 'rss'; + if (FreshRSS_Context::$user_conf->since_hours_posts_per_rss) { + $url_rss['params']['hours'] = FreshRSS_Context::$user_conf->since_hours_posts_per_rss; + } ?> <link rel="alternate" type="application/rss+xml" title="<?php echo $this->rss_title; ?>" href="<?php echo Minz_Url::display($url_rss); ?>" /> <?php } if (FreshRSS_Context::$system_conf->allow_robots) { ?> |
