summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/personal.php28
-rw-r--r--lib/util.php2
2 files changed, 30 insertions, 0 deletions
diff --git a/lib/personal.php b/lib/personal.php
index f1c6ea9b1..86433b486 100644
--- a/lib/personal.php
+++ b/lib/personal.php
@@ -122,6 +122,34 @@ class PersonalAction extends Action {
$feed['textContent'] = "RSS";
break;
+ case 'publicrss':
+ $feed_classname = $feed['type'];
+ $feed_mimetype = "application/".$feed['type']."+xml";
+ $feed_title = "Public timeline ".$feed['version']." feed";
+ $feed['textContent'] = "RSS";
+ break;
+
+ case 'publicatom':
+ $feed_classname = "atom";
+ $feed_mimetype = "application/".$feed['type']."+xml";
+ $feed_title = "Public timeline ".$feed['version']." feed";
+ $feed['textContent'] = "Atom";
+ break;
+
+ case 'tagrss':
+ $feed_classname = $feed['type'];
+ $feed_mimetype = "application/".$feed['type']."+xml";
+ $feed_title = $feed['version']." feed for this tag";
+ $feed['textContent'] = "RSS";
+ break;
+
+ case 'favoritedrss':
+ $feed_classname = $feed['type'];
+ $feed_mimetype = "application/".$feed['type']."+xml";
+ $feed_title = "Favorited ".$feed['version']." feed";
+ $feed['textContent'] = "RSS";
+ break;
+
case 'foaf':
$feed_classname = "foaf";
$feed_mimetype = "application/".$feed['type']."+xml";
diff --git a/lib/util.php b/lib/util.php
index 077c9219a..1b0fc1ec8 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1064,6 +1064,8 @@ function common_fancy_url($action, $args=NULL) {
}
case 'publicrss':
return common_path('rss');
+ case 'publicatom':
+ return common_path("api/statuses/public_timeline.atom");
case 'publicxrds':
return common_path('xrds');
case 'featuredrss':