2015-01-30 06:16:30 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (!defined('GNUSOCIAL')) { exit(1); }
|
|
|
|
|
|
|
|
class ApiTimelineNetworkPublicAction extends ApiTimelinePublicAction
|
|
|
|
{
|
|
|
|
function title()
|
|
|
|
{
|
|
|
|
return sprintf(_("%s network public timeline"), common_config('site', 'name'));
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function getStream()
|
|
|
|
{
|
2015-01-30 07:30:13 +09:00
|
|
|
if (!$this->scoped instanceof Profile && common_config('public', 'localonly')) {
|
|
|
|
$this->clientError(_('Network wide public feed is not permitted without authorization'), 403);
|
|
|
|
}
|
2015-01-30 06:16:30 +09:00
|
|
|
return new NetworkPublicNoticeStream($this->scoped);
|
|
|
|
}
|
|
|
|
}
|