diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-09-22 12:33:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 12:33:49 +0300 |
commit | 032238855be5cf72fd419269d744145333deefed (patch) | |
tree | 5075a0c799f567effa51bc5668e2a2f9aeb3a182 /lib | |
parent | 1b81102881d78b6e3ddbf831de9a5512239cb28c (diff) | |
parent | 69ddfe862affccb6d82deacc69c2b0476e7d326f (diff) |
Merge pull request #1170 from nextcloud/bugfix/noid/performance-avatar
No need to get the avatar image since we have one for each user
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/WopiController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php index 72998187..ddb758c2 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -217,7 +217,7 @@ class WopiController extends Controller { } $user = $this->userManager->get($wopi->getEditorUid()); - if($user !== null && $user->getAvatarImage(32) !== null) { + if($user !== null) { $response['UserExtraInfo']['avatar'] = $this->urlGenerator->linkToRouteAbsolute('core.avatar.getAvatar', ['userId' => $wopi->getEditorUid(), 'size' => 32]); } |