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

This commit is contained in:
xxq250 2024-10-11 08:43:43 +08:00
parent bfb3381829
commit 1e82f5ba91
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.action_type l("trend.#{trend.action_type}") + l("trend.#{trend.trend_type}")
json.trend_id trend.trend_id json.trend_id trend.trend_id
json.user_name trend.user.try(:show_real_name) json.user_name trend.user.try(:show_real_name)
json.user_login trend.user.login json.user_login trend.user&.login
json.user_avatar url_to_avatar(trend.user) json.user_avatar url_to_avatar(trend.user)
json.action_time time_from_now(trend.created_at) json.action_time time_from_now(trend.created_at)
json.project do json.project do