aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-11-24 17:32:45 -0800
committerfriendica <info@friendica.com>2011-11-24 17:32:45 -0800
commit757ca5014cc6329b53d5a8f6e6b7a1a19952f0f2 (patch)
tree80c9990ca898eb648a985d40c0b0aac682e4c77d /mod/network.php
parentcd81dcfc9dec6e6a81a2448f295f8e30b1148bd3 (diff)
downloadvolse-hubzilla-757ca5014cc6329b53d5a8f6e6b7a1a19952f0f2.tar.gz
volse-hubzilla-757ca5014cc6329b53d5a8f6e6b7a1a19952f0f2.tar.bz2
volse-hubzilla-757ca5014cc6329b53d5a8f6e6b7a1a19952f0f2.zip
move liveupdate after birthdays/events
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/network.php b/mod/network.php
index 763b3693f..b6440cabb 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -342,6 +342,24 @@ function network_content(&$a, $update = 0) {
$o .= get_events();
}
+ if(! $update) {
+ // The special div is needed for liveUpdate to kick in for this page.
+ // We only launch liveUpdate if you aren't filtering in some incompatible
+ // way and also you aren't writing a comment (discovered in javascript).
+
+ $o .= '<div id="live-network"></div>' . "\r\n";
+ $o .= "<script> var profile_uid = " . $_SESSION['uid']
+ . "; var netargs = '" . substr($a->cmd,8)
+ . '?f='
+ . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : '')
+ . ((x($_GET,'search')) ? '&search=' . $_GET['search'] : '')
+ . ((x($_GET,'star')) ? '&star=' . $_GET['star'] : '')
+ . ((x($_GET,'order')) ? '&order=' . $_GET['order'] : '')
+ . ((x($_GET,'bmark')) ? '&bmark=' . $_GET['bmark'] : '')
+ . ((x($_GET,'liked')) ? '&liked=' . $_GET['liked'] : '')
+ . "'; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
+ }
+
$sql_extra2 = (($nouveau) ? '' : " AND `item`.`parent` = `item`.`id` ");
if(x($_GET,'search')) {