We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit a661b22f authored by Evan Prodromou's avatar Evan Prodromou

use stream-sized avatar for default profileblock

parent fbc11b72
......@@ -56,6 +56,22 @@ class DefaultProfileBlock extends AccountProfileBlock
parent::__construct($out, $user->getProfile());
function avatarSize()
function avatar()
$avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
if (empty($avatar)) {
$avatar = $this->profile->getAvatar(73);
return (!empty($avatar)) ?
$avatar->displayUrl() :
function canEdit()
return true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment