aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.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/profile.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/profile.php')
-rw-r--r--mod/profile.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/mod/profile.php b/mod/profile.php
index f68006af5..f35ef3653 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -148,14 +148,6 @@ function profile_content(&$a, $update = 0) {
$o .= status_editor($a,$x);
}
- // 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') {
- $o .= '<div id="live-profile"></div>' . "\r\n";
- $o .= "<script> var profile_uid = " . $a->profile['profile_uid']
- . "; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
- }
}
if($is_owner) {
@@ -229,6 +221,16 @@ function profile_content(&$a, $update = 0) {
$o .= get_events();
}
+ if((! $update) && ($tab === 'posts')) {
+
+ // 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.
+
+ $o .= '<div id="live-profile"></div>' . "\r\n";
+ $o .= "<script> var profile_uid = " . $a->profile['profile_uid']
+ . "; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
+ }
+
$o .= conversation($a,$r,'profile',$update);
if(! $update) {