贴吧帖子已读更新
This commit is contained in:
parent
48ddee478e
commit
192c5735cb
|
@ -124,14 +124,13 @@ class MemosController < ApplicationController
|
|||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
end
|
||||
query_memo_messages = @memo.memo_messages
|
||||
query_memo_messages.each do |query_memo_message|
|
||||
if User.current.id == query_memo_message.user_id
|
||||
query_memo_message.update_attributes(:viewed => true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
pre_count = REPLIES_PER_PAGE
|
||||
@memo = @memo.root # 取出楼主,防止输入帖子id让回复作为主贴显示
|
||||
|
|
Loading…
Reference in New Issue