贴吧帖子已读更新

This commit is contained in:
ouyangxuhua 2015-09-02 11:46:49 +08:00
parent 48ddee478e
commit 192c5735cb
1 changed files with 5 additions and 6 deletions

View File

@ -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让回复作为主贴显示