summaryrefslogtreecommitdiffstats
path: root/core/avatar
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-09-28 16:46:53 +0200
committerkondou <kondou@ts.unde.re>2013-09-28 16:46:53 +0200
commit4907685405ead5df56ef0a5ac0b9af7c86885487 (patch)
treef63b1334a0474a448f2541ba310b5899ea985a48 /core/avatar
parentcb565a5f60921f3fdf3c42df12951e02a3bb338d (diff)
downloadnextcloud-server-4907685405ead5df56ef0a5ac0b9af7c86885487.tar.gz
nextcloud-server-4907685405ead5df56ef0a5ac0b9af7c86885487.zip
Base defaultavatar text on displayname
Fix #4876
Diffstat (limited to 'core/avatar')
-rw-r--r--core/avatar/controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/avatar/controller.php b/core/avatar/controller.php
index 9f7c0517c4a..22693824461 100644
--- a/core/avatar/controller.php
+++ b/core/avatar/controller.php
@@ -33,7 +33,7 @@ class Controller {
$image->show();
} else {
// Signalizes $.avatar() to display a defaultavatar
- \OC_JSON::success();
+ \OC_JSON::success(array("data"=> array("displayname"=> \OC_User::getDisplayName($user)) ));
}
}