From 075100e468a52f58042078c58b059201ccb58c9c Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Thu, 15 Oct 2020 19:01:18 +0800 Subject: [PATCH] change --- app/helpers/api_index_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/api_index_helper.rb b/app/helpers/api_index_helper.rb index 22308655..5138b303 100644 --- a/app/helpers/api_index_helper.rb +++ b/app/helpers/api_index_helper.rb @@ -241,7 +241,7 @@ module ApiIndexHelper sticky: memo.sticky, is_fine: memo.is_fine, is_original: memo.is_original, - username: memo.author.show_real_name, + username: memo.author.try(:show_real_name), image_url: "#{url_to_avatar(memo.author)}?#{Time.now.to_i}", user_login: memo.author.try(:login), user_id: memo.author.try(:id),