We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e43ea4c9 authored by Evan Prodromou's avatar Evan Prodromou

fix RealtimePlugin root hack hack

parent be4e3593
...@@ -294,9 +294,18 @@ class RealtimePlugin extends Plugin ...@@ -294,9 +294,18 @@ class RealtimePlugin extends Plugin
// root url from page output // root url from page output
$action->elementStart('address'); $action->elementStart('address');
if (common_config('singleuser', 'enabled')) {
$user = User::singleUser();
$url = common_local_url('showstream', array('nickname' => $user->nickname));
} else {
$url = common_local_url('public');
}
$action->element('a', array('class' => 'url', $action->element('a', array('class' => 'url',
'href' => common_local_url('public')), 'href' => $url),
''); '');
$action->elementEnd('address'); $action->elementEnd('address');
$action->showContentBlock(); $action->showContentBlock();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment