From: Evan Prodromou Date: Sun, 18 Sep 2011 17:03:12 +0000 (-0400) Subject: fix RealtimePlugin root hack hack X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e43ea4c9f5cc18015f7ba1953573930f2d67e960;p=quix0rs-gnu-social.git fix RealtimePlugin root hack hack --- diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index a4bcb8d803..287e48e484 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -294,9 +294,18 @@ class RealtimePlugin extends Plugin // root url from page output $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', - 'href' => common_local_url('public')), + 'href' => $url), ''); + $action->elementEnd('address'); $action->showContentBlock();