]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/all.php
add activitystreams links to other actions
[quix0rs-gnu-social.git] / actions / all.php
index 3deaea52f95ca6e059f5971566bd5145792ac734..4ee3911b40fdb26e84150db918b43fb9955a474f 100644 (file)
@@ -99,6 +99,15 @@ class AllAction extends ProfileAction
     function getFeeds()
     {
         return array(
+            new Feed(Feed::JSON,
+                common_local_url(
+                    'ApiTimelineFriends', array(
+                        'format' => 'as',
+                        'id' => $this->user->nickname
+                    )
+                ),
+                // TRANS: %s is user nickname.
+                sprintf(_('Feed for friends of %s (Activity Streams JSON)'), $this->user->nickname)),
             new Feed(Feed::RSS1,
                 common_local_url(
                     'allrss', array(