mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Always link post to uploads in post process.
The operation is cheap anyway so no point skipping.
This commit is contained in:
@@ -35,16 +35,12 @@ class CookedPostProcessor
|
||||
post_process_oneboxes
|
||||
post_process_images
|
||||
post_process_quotes
|
||||
|
||||
unless @opts[:skip_link_post_uploads]
|
||||
@post.link_post_uploads(fragments: @doc)
|
||||
end
|
||||
|
||||
optimize_urls
|
||||
update_post_image
|
||||
enforce_nofollow
|
||||
pull_hotlinked_images(bypass_bump)
|
||||
grant_badges
|
||||
@post.link_post_uploads(fragments: @doc)
|
||||
DiscourseEvent.trigger(:post_process_cooked, @doc, @post)
|
||||
nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user