aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorjeroenpraat <jeroenpraat@xs4all.nl>2016-03-26 22:32:46 +0100
committerjeroenpraat <jeroenpraat@xs4all.nl>2016-03-26 22:32:46 +0100
commiteeb1c463e37380c4dd7ac3fccf32d26e91a469ce (patch)
tree114015f5626101f9bae3ae1edf4c11161652ace6 /mod
parent97eef2b88c5e2e709b8efdb2ea597a5803783e24 (diff)
downloadvolse-hubzilla-eeb1c463e37380c4dd7ac3fccf32d26e91a469ce.tar.gz
volse-hubzilla-eeb1c463e37380c4dd7ac3fccf32d26e91a469ce.tar.bz2
volse-hubzilla-eeb1c463e37380c4dd7ac3fccf32d26e91a469ce.zip
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.
Diffstat (limited to 'mod')
-rw-r--r--mod/channel.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/channel.php b/mod/channel.php
index dcccb16b6..7bdc056a2 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -34,7 +34,8 @@ function channel_init(&$a) {
$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