summaryrefslogtreecommitdiffstats
path: root/app/views/users/index.api.rsb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users/index.api.rsb')
-rw-r--r--app/views/users/index.api.rsb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/users/index.api.rsb b/app/views/users/index.api.rsb
index 4b51ba47a..b617ea91c 100644
--- a/app/views/users/index.api.rsb
+++ b/app/views/users/index.api.rsb
@@ -11,6 +11,7 @@ api.array :users, api_meta(:total_count => @user_count, :offset => @offset, :lim
api.updated_on user.updated_on
api.last_login_on user.last_login_on
api.passwd_changed_on user.passwd_changed_on
+ api.avatar_url gravatar_url(user.mail, {rating: nil, size: nil, default: Setting.gravatar_default}) if Setting.gravatar_enabled?
api.twofa_scheme user.twofa_scheme
render_api_custom_values user.visible_custom_field_values, api