summaryrefslogtreecommitdiff
path: root/plugins/Realtime/RealtimePlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-09-23 14:58:42 -0400
committerEvan Prodromou <evan@status.net>2009-09-23 14:58:42 -0400
commit36e009349d68d8f34fc50d77c26e6e3307116b2c (patch)
tree7b031262d5552e281d260a42ad835fe5d1bc1ef2 /plugins/Realtime/RealtimePlugin.php
parent480eeb1b800b77cf48111d0fa984721a171f981b (diff)
hack around address hack in util.js
Diffstat (limited to 'plugins/Realtime/RealtimePlugin.php')
-rw-r--r--plugins/Realtime/RealtimePlugin.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php
index 0f3e31071..c41c9ce4a 100644
--- a/plugins/Realtime/RealtimePlugin.php
+++ b/plugins/Realtime/RealtimePlugin.php
@@ -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();
}