mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 20:25:45 +08:00
Update render user avatar url in projects api
This commit is contained in:
@@ -26,7 +26,7 @@ json.author do
|
|||||||
json.name user.try(:show_real_name)
|
json.name user.try(:show_real_name)
|
||||||
json.type user&.type
|
json.type user&.type
|
||||||
json.login user.login
|
json.login user.login
|
||||||
json.image_url render_avatar_url(user)
|
json.image_url url_to_avatar(user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ json.projects @projects do |project|
|
|||||||
json.type user.type
|
json.type user.type
|
||||||
json.name user.try(:show_real_name)
|
json.name user.try(:show_real_name)
|
||||||
json.login user.login
|
json.login user.login
|
||||||
json.image_url render_avatar_url(user)
|
json.image_url url_to_avatar(user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user