mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
fix bug with avatar in smart annotations
This commit is contained in:
parent
b2d2f56bdd
commit
5bed5f0f4a
1 changed files with 3 additions and 2 deletions
|
@ -15,8 +15,9 @@ class AtWhoController < ApplicationController
|
|||
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)
|
||||
id = user_obj['id']
|
||||
user_obj['id'] = id.base62_encode
|
||||
user_obj['img_url'] = avatar_path(id, :icon_small)
|
||||
end
|
||||
|
||||
respond_to do |format|
|
||||
|
|
Loading…
Reference in a new issue