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

@@ -690,10 +690,11 @@ class Post < ActiveRecord::Base
end
# Enqueue post processing for this post
def trigger_post_process(bypass_bump: false, priority: :normal)
def trigger_post_process(bypass_bump: false, priority: :normal, new_post: false)
args = {
post_id: id,
bypass_bump: bypass_bump,
new_post: new_post,
}
args[:image_sizes] = image_sizes if image_sizes.present?
args[:invalidate_oneboxes] = true if invalidate_oneboxes.present?