summaryrefslogtreecommitdiff
path: root/actions/subscriptions.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-12-09 16:05:07 -0500
committerEvan Prodromou <evan@status.net>2010-12-09 16:05:07 -0500
commitc619a257fe04a5ad4cc670c14cc1eab2042b71d8 (patch)
tree150f34591ff1e5e1a7c824f72fee85ca12acd229 /actions/subscriptions.php
parent34b8eb207d3d013ca36966ddb32a4977bd21639f (diff)
Add subscription feed for AtomPub
Diffstat (limited to 'actions/subscriptions.php')
-rw-r--r--actions/subscriptions.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/actions/subscriptions.php b/actions/subscriptions.php
index ba2f67f2d..a814a4f35 100644
--- a/actions/subscriptions.php
+++ b/actions/subscriptions.php
@@ -163,6 +163,22 @@ class SubscriptionsAction extends GalleryAction
$cloud2 = new SubscriptionsPeopleSelfTagCloudSection($this);
$cloud2->show();
}
+
+ /**
+ * Link to feeds of subscriptions
+ *
+ * @return array of Feed objects
+ */
+
+ function getFeeds()
+ {
+ return array(new Feed(Feed::ATOM,
+ common_local_url('AtomPubSubscriptionFeed',
+ array('subscriber' => $this->profile->id)),
+ sprintf(_('Subscription feed for %s (Atom)'),
+ $this->profile->nickname)));
+
+ }
}
// XXX SubscriptionsList and SubscriptionList are dangerously close
@@ -247,4 +263,5 @@ class SubscriptionsListItem extends SubscriptionListItem
$this->out->elementEnd('form');
return;
}
+
}