mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add max_reply_history to limit number of replies
that can be expanded, when clicking "in-reply-to"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user