summaryrefslogtreecommitdiffstats
path: root/lib/public/IAvatar.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-08-01 10:56:22 +0200
committerJoas Schilling <coding@schilljs.com>2018-08-01 10:56:22 +0200
commitdecd1961627986db094de4bf9b83589b9ccdb41e (patch)
treee8b5b830357c50d1bc2d3104322709bb97a76234 /lib/public/IAvatar.php
parent3e0668e348a3935b76c915b8aa1e523caf8da921 (diff)
downloadnextcloud-server-decd1961627986db094de4bf9b83589b9ccdb41e.tar.gz
nextcloud-server-decd1961627986db094de4bf9b83589b9ccdb41e.zip
Make the info available if the avatar was uploaded or generated
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/IAvatar.php')
-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