mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02: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
|
@ -34,7 +34,7 @@ use Friendica\DI;
|
|||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Event;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Profile;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Module\BaseProfile;
|
||||
use Friendica\Network\HTTPException;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
@ -67,7 +67,7 @@ function cal_init(App $a)
|
|||
return;
|
||||
}
|
||||
|
||||
$a->profile = Profile::getByNickname($nick);
|
||||
$a->profile = User::getOwnerDataByNick($nick);
|
||||
if (empty($a->profile)) {
|
||||
throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue