mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:10:11 +00:00
Use "getOwnerDataById" and "getOwnerDataByNick" to fetch owner data
This commit is contained in:
parent
638723ea1c
commit
f0268b57be
6 changed files with 36 additions and 79 deletions
|
@ -27,7 +27,6 @@ use Friendica\Core\System;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Profile;
|
||||
use Friendica\Model\User;
|
||||
|
||||
/**
|
||||
|
@ -51,7 +50,7 @@ class NoScrape extends BaseModule
|
|||
System::jsonError(403, 'Authentication required');
|
||||
}
|
||||
|
||||
$profile = Profile::getByNickname($which);
|
||||
$profile = User::getOwnerDataByNick($which);
|
||||
|
||||
if (empty($profile['uid'])) {
|
||||
System::jsonError(404, 'Profile not found');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue