新增:需要登录

This commit is contained in:
yystopf 2026-03-24 17:26:09 +08:00
parent c676bb34fe
commit fcdfdc7c97
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ json.forum_section_title memo.forum_section_title
json.id memo.id
json.is_fine memo.is_fine
json.is_original memo.is_original
json.memo_watched @current_user.watched?(memo)
json.memo_watched current_user.watched?(memo)
json.new_reply memo.new_reply
json.praises_count memo.praises_count
json.published_time memo.published_at.strftime("%Y-%m-%d %H:%M:%S")

View File

@ -3,5 +3,5 @@ json.resident_expert do
json.partial! 'api/v1/resident_experts/resident_expert', locals: { resident_expert: @resident_expert }
end
json.memos do |memo|
json.partial! 'api/v1/users/memos/memo', locals: { memo: memo }
json.partial! 'api/v1/users/memos/memo', locals: { memo: memo, current_user: current_user }
end