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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user