fixed 项目表头像处理

This commit is contained in:
xxq250 2025-06-27 14:40:37 +08:00
parent cf6dc3a9b4
commit 3eebf61f03
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ json.author do
json.name user.try(:show_real_name)
json.type user&.type
json.login user.login
json.image_url url_to_avatar(user)
json.image_url url_to_avatar(user).present? ? url_to_avatar(user) : User::Avatar.get_letter_avatar_url(user.login)
end
end