]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'ATOM-priority" from Alexandre Alapetite into HEAD
authorDiogo Cordeiro <diogo@fc.up.pt>
Fri, 3 May 2019 12:26:06 +0000 (13:26 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Fri, 3 May 2019 12:30:20 +0000 (13:30 +0100)
source: https://git.gnu.io/gnu/gnu-social/merge_requests/174

1  2 
actions/public.php

index a2958e8806aa9a74c3991d919eb6179d034ce290,18613de89274a8370548adeece428c13cf0ce28e..dd69f7ef24c44386062649122533df874a338826
@@@ -97,23 -97,23 +97,29 @@@ class PublicAction extends SitestreamAc
       */
      function getFeeds()
      {
-         return array(new Feed(Feed::JSON,
 -        return array(new Feed(Feed::ATOM,
 -                              common_local_url('ApiTimelinePublic',
 -                                               array('format' => 'atom')),
 -                              // TRANS: Link description for public timeline feed.
 -                              _('Public Timeline Feed (Atom)')),
 -                    new Feed(Feed::JSON,
--                              common_local_url('ApiTimelinePublic',
--                                               array('format' => 'as')),
--                              // TRANS: Link description for public timeline feed.
--                              _('Public Timeline Feed (Activity Streams JSON)')),
--                    new Feed(Feed::RSS1, common_local_url('publicrss'),
--                              // TRANS: Link description for public timeline feed.
--                              _('Public Timeline Feed (RSS 1.0)')),
-                      new Feed(Feed::RSS2,
 -                    new Feed(Feed::RSS2,
--                              common_local_url('ApiTimelinePublic',
--                                               array('format' => 'rss')),
-                               // TRANS: Link description for public timeline feed.
-                               _('Public Timeline Feed (RSS 2.0)')),
-                      new Feed(Feed::ATOM,
-                               common_local_url('ApiTimelinePublic',
-                                                array('format' => 'atom')),
--                              // TRANS: Link description for public timeline feed.
-                               _('Public Timeline Feed (Atom)')));
 -                              _('Public Timeline Feed (RSS 2.0)')));
++        return [
++            new Feed(Feed::ATOM,
++                     common_local_url('ApiTimelinePublic',
++                     array('format' => 'atom')),
++                     // TRANS: Link description for public timeline feed.
++                     _('Public Timeline Feed (Atom)')
++            ),
++            new Feed(Feed::JSON,
++                     common_local_url('ApiTimelinePublic',
++                     array('format' => 'as')),
++                     // TRANS: Link description for public timeline feed.
++                     _('Public Timeline Feed (Activity Streams JSON)')
++            ),
++            new Feed(Feed::RSS1, common_local_url('publicrss'),
++                     // TRANS: Link description for public timeline feed.
++                     _('Public Timeline Feed (RSS 1.0)')
++            ),
++            new Feed(Feed::RSS2,
++                     common_local_url('ApiTimelinePublic',
++                     array('format' => 'rss')),
++                     // TRANS: Link description for public timeline feed.
++                     _('Public Timeline Feed (RSS 2.0)')
++            ),
++        ];
      }
  }