FEATURE: add max_reply_history to limit number of replies

that can be expanded, when clicking "in-reply-to"
This commit is contained in:
Sam
2014-10-27 09:44:42 +11:00
parent 6d3d425611
commit 1cc37e32b9
6 changed files with 14 additions and 4 deletions

View File

@ -158,7 +158,7 @@ class PostsController < ApplicationController
def reply_history
post = find_post_from_params
render_serialized(post.reply_history, PostSerializer)
render_serialized(post.reply_history(params[:max_replies].to_i), PostSerializer)
end
def destroy