aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-02-03 14:54:06 +0100
committerRobin Appelman <icewind@owncloud.com>2015-02-03 14:54:06 +0100
commitc644ed89a77387b7430e192b45fd5226703b8b3c (patch)
tree7a468faa1ba70806f59df2fc8daffdfc2972555e /lib/public
parent9e222ec841946d773514f790fcc567c634d27038 (diff)
downloadnextcloud-server-c644ed89a77387b7430e192b45fd5226703b8b3c.tar.gz
nextcloud-server-c644ed89a77387b7430e192b45fd5226703b8b3c.zip
Add a better way to check if an avatar exists for the user
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/iavatar.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/iavatar.php b/lib/public/iavatar.php
index 213d2e6cef5..fdb044f9e5c 100644
--- a/lib/public/iavatar.php
+++ b/lib/public/iavatar.php
@@ -21,6 +21,13 @@ interface IAvatar {
function get($size = 64);
/**
+ * Check if an avatar exists for the user
+ *
+ * @return bool
+ */
+ public function exists();
+
+ /**
* sets the users avatar
* @param Image $data mixed imagedata or path to set a new avatar
* @throws \Exception if the provided file is not a jpg or png image