Skip to content

Commit 0d14007

Browse files
committed
fixup! fixup! perf: reduce number of avatar requests
Signed-off-by: Hamza Mahjoubi <[email protected]>
1 parent 7ae59aa commit 0d14007

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/Service/AvatarService.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,6 @@ public function getAvatarImage(string $email, string $uid) {
130130
return null;
131131
}
132132

133-
// we will never get false here because we are not using the cachedOnly flag
134-
if ($avatar === false) {
135-
return null;
136-
}
137-
138133
$cachedImage = $this->cache->getImage($avatar->getUrl(), $uid);
139134
if (!is_null($cachedImage)) {
140135
return [$avatar, base64_decode($cachedImage)];

0 commit comments

Comments
 (0)