move liveupdate after birthdays/events
This commit is contained in:
+10
-8
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user