Remove trailing slash in update_ calls

This commit is contained in:
Philipp 2022-11-15 20:11:38 +01:00
parent eff7740a67
commit 584e7a7e6d
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
3 changed files with 4 additions and 4 deletions

View file

@ -493,7 +493,7 @@ class Conversation
if (!$update) {
$live_update_div = '<div id="live-notes"></div>' . "\r\n"
. "<script> var profile_uid = " . $this->session->getLocalUserId()
. "; var netargs = '/?f='; </script>\r\n";
. "; var netargs = '?f='; </script>\r\n";
}
} elseif ($mode === 'display') {
$items = $this->addChildren($items, false, $order, $uid, $mode);
@ -520,7 +520,7 @@ class Conversation
if (!$update) {
$live_update_div = '<div id="live-contact"></div>' . "\r\n"
. "<script> var profile_uid = -1; var netargs = '" . substr($this->args->getCommand(), 8)
."/?f='; </script>\r\n";
."?f='; </script>\r\n";
}
} elseif ($mode === 'search') {
$live_update_div = '<div id="live-search"></div>' . "\r\n";

View file

@ -642,7 +642,7 @@ return [
'/update_community[/{content}]' => [Module\Update\Community::class, [R::GET]],
'/update_display[/]' => [Module\Update\Display::class, [R::GET]],
'/update_display' => [Module\Update\Display::class, [R::GET]],
'/update_network' => [
'[/]' => [Module\Update\Network::class, [R::GET]],

View file

@ -590,7 +590,7 @@ function liveUpdate(src) {
var orgHeight = $("section").height();
var udargs = ((netargs.length) ? '/' + netargs : '');
var udargs = ((netargs.length) ? netargs : '');
var update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&force=' + (force ? 1 : 0) + '&item=' + update_item;