|
|
@ -115,6 +115,8 @@ class MemosController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
REPLIES_PER_PAGE = 20 unless const_defined?(:REPLIES_PER_PAGE)
|
|
|
|
REPLIES_PER_PAGE = 20 unless const_defined?(:REPLIES_PER_PAGE)
|
|
|
|
def show
|
|
|
|
def show
|
|
|
|
|
|
|
|
#更新贴吧帖子留言对应的memo_messages的viewed字段
|
|
|
|
|
|
|
|
query_memo_messages = @memo.memo_messages
|
|
|
|
pre_count = REPLIES_PER_PAGE
|
|
|
|
pre_count = REPLIES_PER_PAGE
|
|
|
|
|
|
|
|
|
|
|
|
@memo = @memo.root # 取出楼主,防止输入帖子id让回复作为主贴显示
|
|
|
|
@memo = @memo.root # 取出楼主,防止输入帖子id让回复作为主贴显示
|
|
|
|