[add] add RSS feed for archive

This commit is contained in:
Nicolas Lœuillet 2013-12-05 15:13:32 +01:00
parent f0133fe5f4
commit 59cc585271
2 changed files with 2 additions and 1 deletions

View file

@ -858,7 +858,7 @@ class Poche
public function generateFeeds($token, $user_id, $type = 'home')
{
$allowed_types = array('home', 'fav');
$allowed_types = array('home', 'fav', 'archive');
$config = $this->store->getConfigUser($user_id);
if (!in_array($type, $allowed_types) ||

View file

@ -36,6 +36,7 @@
<ul>
<li><a href="?feed&amp;type=home&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "unread feed" %}</a></li>
<li><a href="?feed&amp;type=fav&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "favorites feed" %}</a></li>
<li><a href="?feed&amp;type=archive&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "unread feed" %}</a></li>
</ul>
{% endif %}