From 1e82f5ba91f7bb7c79c98c93f19252b44b16e99c Mon Sep 17 00:00:00 2001 From: xxq250 Date: Fri, 11 Oct 2024 08:43:43 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=20=E5=88=A0=E9=99=A4=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=97=B6=E4=BF=9D=E7=95=99=E9=A1=B9=E7=9B=AE=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/project_trends/_detail.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/project_trends/_detail.json.jbuilder b/app/views/project_trends/_detail.json.jbuilder index e7c590b8f..3847d3368 100644 --- a/app/views/project_trends/_detail.json.jbuilder +++ b/app/views/project_trends/_detail.json.jbuilder @@ -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&.login json.user_avatar url_to_avatar(trend.user) json.action_time time_from_now(trend.created_at) json.project do