aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Avatar/UserAvatar.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-04-09 11:23:06 +0200
committerJoas Schilling <coding@schilljs.com>2019-04-09 11:23:06 +0200
commit38f8f7cbf4dbfecdb55be8bfcafa4d8b5c7355d4 (patch)
tree7acb908ad5f4d5ffd331b7d500e1b696fa1a631b /lib/private/Avatar/UserAvatar.php
parentec4b1584fe46df81e3eda1ff374f575d153a966f (diff)
downloadnextcloud-server-38f8f7cbf4dbfecdb55be8bfcafa4d8b5c7355d4.tar.gz
nextcloud-server-38f8f7cbf4dbfecdb55be8bfcafa4d8b5c7355d4.zip
Don't get the avatar when we don't operate anyway
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Avatar/UserAvatar.php')
-rw-r--r--lib/private/Avatar/UserAvatar.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/private/Avatar/UserAvatar.php b/lib/private/Avatar/UserAvatar.php
index db5e041d66c..2db65634e8c 100644
--- a/lib/private/Avatar/UserAvatar.php
+++ b/lib/private/Avatar/UserAvatar.php
@@ -312,11 +312,6 @@ class UserAvatar extends Avatar {
* @throws \OCP\PreConditionNotMetException
*/
public function userChanged($feature, $oldValue, $newValue) {
- // We only change the avatar on display name changes
- if ($feature !== 'displayName') {
- return;
- }
-
// If the avatar is not generated (so an uploaded image) we skip this
if (!$this->folder->fileExists('generated')) {
return;