mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Remove full quotes only from new posts. (#6862)
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user