新增:需要登录

This commit is contained in:
yystopf 2026-03-24 17:24:40 +08:00
parent 97aac27770
commit c676bb34fe
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
class Api::V1::Users::MemosController < Api::V1::BaseController
before_action :load_observe_user
before_action :require_login
def index
@resident_expert = ResidentExpert.find_by(user_id: @observe_user.id)

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")