Update render user avatar url in projects api
This commit is contained in:
parent
002ae9f327
commit
9cddda7fd4
|
@ -26,7 +26,7 @@ json.author do
|
|||
json.name user.try(:show_real_name)
|
||||
json.type user&.type
|
||||
json.login user.login
|
||||
json.image_url render_avatar_url(user)
|
||||
json.image_url url_to_avatar(user)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ json.projects @projects do |project|
|
|||
json.type user.type
|
||||
json.name user.try(:show_real_name)
|
||||
json.login user.login
|
||||
json.image_url render_avatar_url(user)
|
||||
json.image_url url_to_avatar(user)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue