mirror of
https://github.com/friendica/friendica
synced 2025-04-24 00:30:11 +00:00
Adapt BaseURL calls to new UriInterface
This commit is contained in:
parent
9e6d95284b
commit
f0c29edcde
101 changed files with 218 additions and 241 deletions
|
@ -62,7 +62,7 @@ abstract class ContactEndpoint extends BaseApi
|
|||
if (!$screen_name) {
|
||||
$contact = Contact::getById($contact_id, ['nick', 'url']);
|
||||
// We don't have the followers of remote accounts so we check for locality
|
||||
if (empty($contact) || !Strings::startsWith($contact['url'], DI::baseUrl()->get())) {
|
||||
if (empty($contact) || !Strings::startsWith($contact['url'], DI::baseUrl())) {
|
||||
throw new HTTPException\NotFoundException(DI::l10n()->t('Contact not found'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue