From: Evan Prodromou Date: Wed, 23 Sep 2009 18:58:42 +0000 (-0400) Subject: hack around address hack in util.js X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=36e009349d68d8f34fc50d77c26e6e3307116b2c;p=quix0rs-gnu-social.git hack around address hack in util.js --- diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index 0f3e310714..c41c9ce4ac 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(); }