]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/showgroup.php
add activitystreams links to other actions
[quix0rs-gnu-social.git] / actions / showgroup.php
index 530deff622ff21a8b0cdf1668afb3245cbcb59a0..d4f65a805983d01fa5361b4729080d06d97a7297 100644 (file)
@@ -220,7 +220,14 @@ class ShowgroupAction extends Action
           common_local_url('grouprss',
                            array('nickname' => $this->group->nickname));
 
-        return array(new Feed(Feed::RSS1,
+        return array(new Feed(Feed::JSON,
+                              common_local_url('ApiTimelineGroup',
+                                               array('format' => 'as',
+                                                     'id' => $this->group->id)),
+                              // TRANS: Tooltip for feed link. %s is a group nickname.
+                              sprintf(_('Notice feed for %s group (Activity Streams JSON)'),
+                                      $this->group->nickname)),
+                    new Feed(Feed::RSS1,
                               common_local_url('grouprss',
                                                array('nickname' => $this->group->nickname)),
                               // TRANS: Tooltip for feed link. %s is a group nickname.