This commit is contained in:
sylor_huang@126.com 2020-10-15 19:01:18 +08:00
parent 458e7147c5
commit 075100e468
1 changed files with 1 additions and 1 deletions

View File

@ -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),