FIX: postprocessing ignored cook method

This commit is contained in:
Gerhard Schlager
2017-10-17 20:37:51 +02:00
parent 1481462cbf
commit 4205c1ad2b
4 changed files with 49 additions and 27 deletions

View File

@ -20,6 +20,7 @@ class CookedPostProcessor
@cooking_options[:topic_id] = post.topic_id
@cooking_options = @cooking_options.symbolize_keys
@cooking_options[:omit_nofollow] = true if post.omit_nofollow?
@cooking_options[:cook_method] = post.cook_method
analyzer = post.post_analyzer
@doc = Nokogiri::HTML::fragment(analyzer.cook(post.raw, @cooking_options))