3 if (!defined('GNUSOCIAL')) { exit(1); }
5 class ApiTimelineNetworkPublicAction extends ApiTimelinePublicAction
9 return sprintf(_("%s network public timeline"), common_config('site', 'name'));
12 protected function getStream()
14 if (!$this->scoped instanceof Profile && common_config('public', 'localonly')) {
15 $this->clientError(_('Network wide public feed is not permitted without authorization'), 403);
17 return new NetworkPublicNoticeStream($this->scoped);