Small, but I think useful hack. Added a top posts only atom feed, so people can choose directly from their browser which feed they need.

This commit is contained in:
jeroenpraat 2016-03-26 22:32:46 +01:00
parent 97eef2b88c
commit eeb1c463e3

View File

@ -34,7 +34,8 @@ function channel_init(&$a) {
$profile = argv(1); $profile = argv(1);
} }
$a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . $a->get_baseurl() . '/feed/' . $which .'" />' . "\r\n" ; $a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" title="' . t('Only posts') . '" href="' . $a->get_baseurl() . '/feed/' . $which . '?top=1" />' . "\r\n" ;
$a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" title="' . t('Posts and comments') . '" href="' . $a->get_baseurl() . '/feed/' . $which . '" />' . "\r\n" ;
// Not yet ready for prime time // Not yet ready for prime time