fixed 删除用户时issue,pr,评论用户显示已注销

This commit is contained in:
xxq250 2024-10-11 15:35:40 +08:00
parent 098b045315
commit 8bf6f24fe6
1 changed files with 2 additions and 2 deletions

View File

@ -11,9 +11,9 @@ json.zipball_url render_zip_url(@owner, @repository, version&.tag_name)
json.draft version&.draft ? "草稿" : (version&.prerelease ? "预发行" : "稳定")
json.created_at format_time(version.created_at.to_s.to_time)
json.published_at format_time(version.created_at.to_s.to_time)
json.user_name user.present? ? user.try(:show_real_name) : ""
json.user_name user.present? ? user.try(:show_real_name) : "已注销"
json.user_login user&.login
json.image_url user.present? ? url_to_avatar(user) : ""
json.image_url user.present? ? url_to_avatar(user) : "images/account/del.svg"
json.attachments do
json.array! version.try(:attachments) do |attachment|
# json.partial! "attachments/attachment_simple", locals: {attachment: attachment}