aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/network.php b/mod/network.php
index e9e730340..ac6286e6d 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -58,8 +58,11 @@ function network_content(&$a, $update = 0) {
// filtering by group and also you aren't writing a comment (the last
// criteria is discovered in javascript).
- if($a->pager['start'] == 0 && $a->argc == 1)
- $o .= '<div id="live-network" profile="' . $_SESSION['uid'] . '"></div>' . "\r\n";
+ if($a->pager['start'] == 0 && $a->argc == 1) {
+ $o .= '<div id="live-network"></div>' . "\r\n";
+ $o .= "<script> var profile_uid = " . $_SESSION['uid'] . "; </script>\r\n";
+ }
+
}
// We aren't going to try and figure out at the item, group, and page level