mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: post merging was failing silently (#12566)
https://meta.discourse.org/t/merging-very-long-posts-removes-them/183597
This commit is contained in:
@@ -363,6 +363,8 @@ class PostsController < ApplicationController
|
||||
raise Discourse::InvalidParameters.new(:post_ids) if posts.pluck(:id) == params[:post_ids]
|
||||
PostMerger.new(current_user, posts).merge
|
||||
render body: nil
|
||||
rescue PostMerger::CannotMergeError => e
|
||||
render_json_error(e.message)
|
||||
end
|
||||
|
||||
# Direct replies to this post
|
||||
|
||||
Reference in New Issue
Block a user