mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 09:04:26 +02:00
Use central function to fetch the global directory
This commit is contained in:
parent
478ee7b6fc
commit
171354181d
13 changed files with 24 additions and 14 deletions
|
@ -23,6 +23,7 @@ namespace Friendica\Module\Api\Friendica\Profile;
|
|||
|
||||
use Friendica\Profile\ProfileField\Collection\ProfileFields;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Search;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Profile;
|
||||
use Friendica\Module\BaseApi;
|
||||
|
@ -39,7 +40,7 @@ class Show extends BaseApi
|
|||
$uid = self::getCurrentUserID();
|
||||
|
||||
// retrieve general information about profiles for user
|
||||
$directory = DI::config()->get('system', 'directory');
|
||||
$directory = Search::getGlobalDirectory();
|
||||
|
||||
$profile = Profile::getByUID($uid);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue