Browse Source

fixed 删除用户时保留项目动态数据

pull/347/head
xxq250 1 year ago
parent
commit
28fea9a872
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/project_trends/_detail.json.jbuilder

+ 1
- 1
app/views/project_trends/_detail.json.jbuilder View File

@@ -3,7 +3,7 @@ json.trend_type trend.trend_type
json.action_type l("trend.#{trend.action_type}") + l("trend.#{trend.trend_type}")
json.trend_id trend.trend_id
json.user_name trend.user.try(:show_real_name)
json.user_login trend.user&.login
json.user_login trend.user.blank?? "已注销": trend.user.login
json.user_avatar trend.user.blank?? User::Avatar.get_letter_avatar_url("D") : url_to_avatar(trend.user)
json.action_time time_from_now(trend.created_at)
json.project do


Loading…
Cancel
Save