mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FEATURE: Remove full quotes only from new posts. (#6862)
This commit is contained in:
@ -33,10 +33,10 @@ class CookedPostProcessor
|
||||
@disable_loading_image = !!opts[:disable_loading_image]
|
||||
end
|
||||
|
||||
def post_process(bypass_bump = false)
|
||||
def post_process(bypass_bump: false, new_post: false)
|
||||
DistributedMutex.synchronize("post_process_#{@post.id}") do
|
||||
DiscourseEvent.trigger(:before_post_process_cooked, @doc, @post)
|
||||
removed_direct_reply_full_quotes
|
||||
removed_direct_reply_full_quotes if new_post
|
||||
post_process_oneboxes
|
||||
post_process_images
|
||||
post_process_quotes
|
||||
|
Reference in New Issue
Block a user