From 41c500cc303ed6a52671716860150829df49ecb0 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 24 Dec 2019 16:20:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=98=AF=E5=90=A6=E7=82=B9?= =?UTF-8?q?=E8=B5=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/hack_user_lastest_codes/show.json.jbuilder | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/hack_user_lastest_codes/show.json.jbuilder b/app/views/hack_user_lastest_codes/show.json.jbuilder index f3ae49539..098c24546 100644 --- a/app/views/hack_user_lastest_codes/show.json.jbuilder +++ b/app/views/hack_user_lastest_codes/show.json.jbuilder @@ -7,6 +7,7 @@ json.hack do json.submit_count @hack.submit_num json.modify_code @modify json.comments_count @hack.discusses.count + json.user_praise @hack.praise_treads.select{|pt| pt.user_id == current_user.id}.length > 0 end json.test_case do