FEATURE: Remove full quotes only from new posts. (#6862)

This commit is contained in:
Bianca Nenciu
2019-01-17 04:24:32 +02:00
committed by Sam
parent e7d2a0d42f
commit 7d84648d11
5 changed files with 25 additions and 10 deletions

View File

@ -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