From ec8ab83ea57f0a493035260d2775fc535babea4f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 7 Aug 2018 14:55:33 +0200 Subject: get avatar custom status from user config this saves a cache operation because the user config is already cached Signed-off-by: Robin Appelman --- lib/private/Avatar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private') diff --git a/lib/private/Avatar.php b/lib/private/Avatar.php index 116f8368e71..d107bb47c52 100644 --- a/lib/private/Avatar.php +++ b/lib/private/Avatar.php @@ -125,7 +125,7 @@ class Avatar implements IAvatar { * @return bool */ public function isCustomAvatar(): bool { - return !$this->folder->fileExists('generated'); + return $this->config->getUserValue($this->user->getUID(), 'avatar', 'generated', 'false') !== 'true'; } /** -- cgit v1.2.3