From: Tobias Diekershoff Date: Wed, 18 Aug 2021 17:11:23 +0000 (+0200) Subject: nitter: the nitter instance base url should not contain the trailing / X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=81fce72efe15c5408a576fdff7bc3274fbfef905;p=friendica-addons.git nitter: the nitter instance base url should not contain the trailing / --- diff --git a/nitter/nitter.php b/nitter/nitter.php index fab7aa06..549356de 100644 --- a/nitter/nitter.php +++ b/nitter/nitter.php @@ -38,6 +38,9 @@ function nitter_install() function nitter_addon_admin_post(App $a) { $nitterserver = trim($_POST['nitterserver']); + if ((substr($apiurl, -1) == '/')) { + $apiurl = substr($apiurl, 0, -1); + } DI::config()->set('nitter', 'server', $nitterserver); }