Update render user avatar url in projects api

This commit is contained in:
jasder 2021-04-19 15:38:51 +08:00
parent 002ae9f327
commit 9cddda7fd4
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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