]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - actions/apitimelinenetworkpublic.php
jQuery cookie plugin updated
[quix0rs-gnu-social.git] / actions / apitimelinenetworkpublic.php
1 <?php
2
3 if (!defined('GNUSOCIAL')) { exit(1); }
4
5 class ApiTimelineNetworkPublicAction extends ApiTimelinePublicAction
6 {
7     function title()
8     {
9         return sprintf(_("%s network public timeline"), common_config('site', 'name'));
10     }
11
12     protected function getStream()
13     {
14         if (!$this->scoped instanceof Profile && common_config('public', 'localonly')) {
15             $this->clientError(_('Network wide public feed is not permitted without authorization'), 403);
16         }
17         return new NetworkPublicNoticeStream($this->scoped);
18     }
19 }