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

This commit is contained in:
xxq250 2024-10-11 08:46:53 +08:00
parent 7b12526963
commit 28fea9a872
1 changed files with 1 additions and 1 deletions

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