]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
hack around address hack in util.js
authorEvan Prodromou <evan@status.net>
Wed, 23 Sep 2009 18:58:42 +0000 (14:58 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 23 Sep 2009 18:58:42 +0000 (14:58 -0400)
plugins/Realtime/RealtimePlugin.php

index 0f3e3107148f6931910172551d2d1cc696d5b9ce..c41c9ce4ac08918d02d286963409d496e572008a 100644 (file)
@@ -222,6 +222,16 @@ class RealtimePlugin extends Plugin
                               (common_current_user()) ? array('id' => $action->trimmed('action'),
                                                               'class' => 'user_in')
                               : array('id' => $action->trimmed('action')));
+
+        // XXX hack to deal with JS that tries to get the
+        // root url from page output
+
+        $action->elementStart('address');
+        $action->element('a', array('class' => 'url',
+                                  'href' => common_local_url('public')),
+                         '');
+        $action->elementEnd('address');
+
         if (common_logged_in()) {
             $action->showNoticeForm();
         }