summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-08-01 22:54:38 +0200
committerGitHub <noreply@github.com>2018-08-01 22:54:38 +0200
commitfae7e516b5e17ae95e850a866c9e5a08732e2f6b (patch)
tree3234679e25c38ef05f9a88d8368fe03287b4066c /lib/public
parentb5c5faebfc136d634fd7e80d6a0a8e1094bca717 (diff)
parent38fffffe18dc705f29bbb477aebd8497f173d37a (diff)
downloadnextcloud-server-fae7e516b5e17ae95e850a866c9e5a08732e2f6b.tar.gz
nextcloud-server-fae7e516b5e17ae95e850a866c9e5a08732e2f6b.zip
Merge pull request #10481 from nextcloud/feature/noid/make-info-available-if-the-avatar-was-uploaded
Make the info available if the avatar was uploaded or generated
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/IAvatar.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/IAvatar.php b/lib/public/IAvatar.php
index 85863357069..448d5dfc02f 100644
--- a/lib/public/IAvatar.php
+++ b/lib/public/IAvatar.php
@@ -54,6 +54,14 @@ interface IAvatar {
public function exists();
/**
+ * Check if the avatar of a user is a custom uploaded one
+ *
+ * @return bool
+ * @since 14.0.0
+ */
+ public function isCustomAvatar(): bool;
+
+ /**
* sets the users avatar
* @param \OCP\IImage|resource|string $data An image object, imagedata or path to set a new avatar
* @throws \Exception if the provided file is not a jpg or png image