]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix RealtimePlugin root hack hack
authorEvan Prodromou <evan@status.net>
Sun, 18 Sep 2011 17:03:12 +0000 (13:03 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 18 Sep 2011 17:03:12 +0000 (13:03 -0400)
plugins/Realtime/RealtimePlugin.php

index a4bcb8d803272df3eb4585b8e794f1544e5bfe41..287e48e48475e4cb267a3ed2ec97c8754ce30ecf 100644 (file)
@@ -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();