mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fixed 删除用户时保留项目动态数据
This commit is contained in:
@@ -2,8 +2,8 @@ json.id trend.id
|
|||||||
json.trend_type trend.trend_type
|
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.blank?? "已注销": trend.user.show_real_name
|
||||||
json.user_login trend.user.blank?? "已注销": trend.user.login
|
json.user_login trend.user&.login
|
||||||
json.user_avatar trend.user.blank?? User::Avatar.get_letter_avatar_url("D") : url_to_avatar(trend.user)
|
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.action_time time_from_now(trend.created_at)
|
||||||
json.project do
|
json.project do
|
||||||
|
|||||||
Reference in New Issue
Block a user