Remove deprecated App::getUrlPath - process methods to DI::baseUrl()->getUrlPath()

This commit is contained in:
nupplaPhil 2019-12-16 00:39:54 +01:00
parent e93fba5136
commit 2900389696
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
9 changed files with 12 additions and 23 deletions

View file

@ -80,7 +80,7 @@ class Magic extends BaseModule
$headers = HTTPSignature::createSig(
$headers,
$user['prvkey'],
'acct:' . $user['nickname'] . '@' . $a->getHostName() . ($a->getURLPath() ? '/' . $a->getURLPath() : '')
'acct:' . $user['nickname'] . '@' . $a->getHostName() . (DI::baseUrl()->getUrlPath() ? '/' . DI::baseUrl()->getUrlPath() : '')
);
// Try to get an authentication token from the other instance.