use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\DI;
-use Friendica\Model\Contact;
use Friendica\Model\User;
/**
$which = $parameters['nick'];
} elseif (local_user() && isset($parameters['profile']) && DI::args()->get(2) == 'view') {
// view infos about a known profile (needs a login)
- $which = $a->user['nickname'];
+ $which = $a->getLoggedInUserNickname();
} else {
System::jsonError(403, 'Authentication required');
}
$keywords = explode(',', $keywords);
$json_info['fn'] = $profile['name'];
- $json_info['photo'] = Contact::getAvatarUrlForUrl($profile['url'], $profile['uid']);
+ $json_info['photo'] = User::getAvatarUrlForId($profile['uid']);
$json_info['tags'] = $keywords;
$json_info['language'] = $profile['language'];