mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-16 14:13:55 +00:00
nitter: the nitter instance base url should not contain the trailing /
This commit is contained in:
parent
b78c8a30f6
commit
81fce72efe
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ function nitter_install()
|
||||||
function nitter_addon_admin_post(App $a)
|
function nitter_addon_admin_post(App $a)
|
||||||
{
|
{
|
||||||
$nitterserver = trim($_POST['nitterserver']);
|
$nitterserver = trim($_POST['nitterserver']);
|
||||||
|
if ((substr($apiurl, -1) == '/')) {
|
||||||
|
$apiurl = substr($apiurl, 0, -1);
|
||||||
|
}
|
||||||
DI::config()->set('nitter', 'server', $nitterserver);
|
DI::config()->set('nitter', 'server', $nitterserver);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue