/main/all will give a network-wide public stream

Qvitter had implemented this as a "PublicAndExternal" stream, but
I figured we might as well put it into the GNU social core.
This commit is contained in:
Mikael Nordfeldth
2015-01-28 20:25:39 +01:00
parent eaaef2aec9
commit a5d27d9ce7
8 changed files with 169 additions and 52 deletions

View File

@@ -949,8 +949,12 @@ class Router
}
} else {
$m->connect('main/public', array('action' => 'public'));
$m->connect('', array('action' => 'public'));
$m->connect('main/all', array('action' => 'networkpublic'));
if (common_config('site', 'localonly')) {
$m->connect('', array('action' => 'public'));
} else {
$m->connect('', array('action' => 'networkpublic'));
}
$m->connect('rss', array('action' => 'publicrss'));
$m->connect('featuredrss', array('action' => 'featuredrss'));
$m->connect('featured/', array('action' => 'featured'));