]> git.mxchange.org Git - friendica-addons.git/commitdiff
nitter: the nitter instance base url should not contain the trailing /
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 18 Aug 2021 17:11:23 +0000 (19:11 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 18 Aug 2021 17:11:23 +0000 (19:11 +0200)
nitter/nitter.php

index fab7aa06853915a4cf5525cbb241fc3fab323ead..549356de29200b5868d8b514c66ac3dea2344f57 100644 (file)
@@ -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);
 }