From 42ff8343562405dbaaaaf5999c4c38430560d0a0 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sun, 9 Feb 2020 23:46:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/live_links/index.json.jbuilder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/live_links/index.json.jbuilder b/app/views/live_links/index.json.jbuilder index 7e0347618..02eb7be53 100644 --- a/app/views/live_links/index.json.jbuilder +++ b/app/views/live_links/index.json.jbuilder @@ -1,5 +1,6 @@ json.lives @lives do |live| - json.(live, :id, :url, :description, :on_status) + json.(live, :id, :description, :on_status) + json.url live.on_status ? live.url : "" json.author_name live.user.show_real_name json.author_login live.user.login json.author_img url_to_avatar(live.user)