diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/network.php | 7 | ||||
-rw-r--r-- | mod/profile.php | 7 |
2 files changed, 10 insertions, 4 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 diff --git a/mod/profile.php b/mod/profile.php index 4adcd29f6..b155acf80 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -163,8 +163,11 @@ function profile_content(&$a, $update = 0) { // This is ugly, but we can't pass the profile_uid through the session to the ajax updater, // because browser prefetching might change it on us. We have to deliver it with the page. - if($tab == 'posts' && (! $a->pager['start'])) - $o .= '<div id="live-profile" profile="' . $a->profile['profile_uid'] . '"></div>' . "\r\n"; + if($tab == 'posts' && (! $a->pager['start'])) { + $o .= '<div id="live-profile"></div>' . "\r\n"; + $o .= "<script> var profile_uid = " . $a->profile['profile_uid'] . "; </script>\r\n"; + } + } // TODO alter registration and settings and profile to update contact table when names and photos change. |