From 584e7a7e6d2766b20bdaad23f81b9f4a42ba510b Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 15 Nov 2022 20:11:38 +0100 Subject: [PATCH] Remove trailing slash in `update_` calls --- src/Content/Conversation.php | 4 ++-- static/routes.config.php | 2 +- view/js/main.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Content/Conversation.php b/src/Content/Conversation.php index 522de7b573..ec317824b6 100644 --- a/src/Content/Conversation.php +++ b/src/Content/Conversation.php @@ -493,7 +493,7 @@ class Conversation if (!$update) { $live_update_div = '
' . "\r\n" . "\r\n"; + . "; var netargs = '?f='; \r\n"; } } elseif ($mode === 'display') { $items = $this->addChildren($items, false, $order, $uid, $mode); @@ -520,7 +520,7 @@ class Conversation if (!$update) { $live_update_div = '
' . "\r\n" . "\r\n"; + ."?f='; \r\n"; } } elseif ($mode === 'search') { $live_update_div = '' . "\r\n"; diff --git a/static/routes.config.php b/static/routes.config.php index bed1dfdee5..7a86d8d034 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -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]], diff --git a/view/js/main.js b/view/js/main.js index 93340dc37f..e11585381c 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -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; -- 2.39.5