mirror of
https://github.com/friendica/friendica
synced 2025-04-22 06:30:11 +00:00
Use ProfileField::selectPublicFieldsByUserId
This commit is contained in:
parent
1c0f92c382
commit
a9981c792e
9 changed files with 170 additions and 40 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
namespace Friendica\Module\Api\Friendica\Profile;
|
||||
|
||||
use Friendica\Collection\ProfileFields;
|
||||
use Friendica\Profile\ProfileField\Collection\ProfileFields;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
|
@ -45,7 +45,7 @@ class Show extends BaseApi
|
|||
|
||||
$profile = Profile::getByUID($uid);
|
||||
|
||||
$profileFields = DI::profileField()->select(['uid' => $uid, 'psid' => PermissionSet::PUBLIC]);
|
||||
$profileFields = DI::profileFieldNew()->selectPublicFieldsByUserId($uid);
|
||||
|
||||
$profile = self::formatProfile($profile, $profileFields);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue