Skip to content

Commit 02ff529

Browse files
rafacamargo123fguillot
authored andcommitted
Add avatar size on img tag
Forces the size on frontend because apparently we can't trust Google. Closes #14
1 parent ea7be97 commit 02ff529

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

User/Avatar/GoogleAvatarProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function render(array $user, $size)
2727
{
2828
$url = $this->googleAvatarCache[$user['id']].'?sz='.$size;
2929
$title = $this->helper->text->e($user['name'] ?: $user['username']);
30-
return '<img src="'.$url.'" alt="'.$title.'" title="'.$title.'">';
30+
return '<img src="'.$url.'" alt="'.$title.'" title="'.$title.'" width="'.$size.'">';
3131
}
3232

3333
/**

0 commit comments

Comments
 (0)