mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:50:20 +00: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
|
@ -449,7 +449,7 @@ class DFRN
|
|||
|
||||
$attributes = ["rel" => "photo", "type" => "image/jpeg",
|
||||
"media:width" => Proxy::PIXEL_SMALL, "media:height" => Proxy::PIXEL_SMALL,
|
||||
"href" => User::getAvatarUrlForId($owner['uid'], Proxy::SIZE_SMALL)];
|
||||
"href" => User::getAvatarUrl($owner, Proxy::SIZE_SMALL)];
|
||||
|
||||
if (!$public || !$hide) {
|
||||
$attributes["dfrn:updated"] = $picdate;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue