mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Refactor User::getAvatarUrlForId into getAvatarUrl
- Use user/owner array as parameter instead of uid - Rename $profile variables to $owner when it's the result of User::getOwnerDataByNick - Replace Module\Photo::stripExtension with native pathinfo() calls
This commit is contained in:
parent
810699b454
commit
7cdd2d1336
14 changed files with 78 additions and 107 deletions
|
@ -122,7 +122,7 @@ class Delegation extends BaseModule
|
|||
|
||||
//getting additinal information for each identity
|
||||
foreach ($identities as $key => $identity) {
|
||||
$identities[$key]['thumb'] = User::getAvatarUrlForId($identity['uid'], Proxy::SIZE_THUMB);
|
||||
$identities[$key]['thumb'] = User::getAvatarUrl($identity, Proxy::SIZE_THUMB);
|
||||
|
||||
$identities[$key]['selected'] = ($identity['nickname'] === DI::app()->getLoggedInUserNickname());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue