mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
We serve to please the Hound
This commit is contained in:
parent
0ee5b98977
commit
5873eea994
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ class AtWhoController < ApplicationController
|
|||
|
||||
# Add avatars, Base62, convert to JSON
|
||||
res.each do |user_obj|
|
||||
user_obj['full_name'] = user_obj['full_name'].truncate(Constants::NAME_TRUNCATION_LENGTH_DROPDOWN)
|
||||
user_obj['full_name'] =
|
||||
user_obj['full_name']
|
||||
.truncate(Constants::NAME_TRUNCATION_LENGTH_DROPDOWN)
|
||||
user_obj['id'] = user_obj['id'].base62_encode
|
||||
user_obj['img_url'] = avatar_path(user_obj['id'], :icon_small)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue