Fix broken bookmarks feed

This commit is contained in:
Frédéric Guillot 2014-12-26 10:43:59 -05:00
parent bb21b9aa02
commit 3f5cbcb3c9
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ use PicoFarad\Response;
use PicoFarad\Request;
use PicoFarad\Session;
use PicoFarad\Template;
use PicoFeed\Syndication\Atom;
// Ajax call to add or remove a bookmark
Router\post_action('bookmark', function() {
@ -71,7 +72,7 @@ Router\get_action('bookmark-feed', function() {
}
// Build Feed
$writer = new PicoFeed\Writers\Atom;
$writer = new Atom;
$writer->title = t('Bookmarks').' - Miniflux';
$writer->site_url = Helper\get_current_base_url();
$writer->feed_url = $writer->site_url.'?action=bookmark-feed&token='.urlencode($feed_token);