diff options
author | Evan Prodromou <evan@status.net> | 2010-12-13 14:35:42 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-12-13 14:35:42 -0500 |
commit | 027c73a4a1e1509b7cacc6068dacfb4fc778c872 (patch) | |
tree | f0127e35e046836148fd090663e6754db5cbbe37 /actions/subscriptions.php | |
parent | bb55784e902388f12ae9a0beddf283b48f19531e (diff) | |
parent | 1033e1e5199bd0c5889ecbc915c6b644cff23c10 (diff) |
Merge branch 'activityatompub' into 0.9.x
Diffstat (limited to 'actions/subscriptions.php')
-rw-r--r-- | actions/subscriptions.php | 17 |
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; } + } |