From 7518854ac2730d1924614072d9c240460bef19b4 Mon Sep 17 00:00:00 2001 From: gotens1211 Date: Tue, 24 Jan 2017 23:22:10 +0530 Subject: [PATCH] Cosmetic chnages removed --- app/models/post_analyzer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/post_analyzer.rb b/app/models/post_analyzer.rb index 913b5a81ebe..09f7cd9932f 100644 --- a/app/models/post_analyzer.rb +++ b/app/models/post_analyzer.rb @@ -14,13 +14,14 @@ class PostAnalyzer # What we use to cook posts def cook(*args) - cooked = PrettyText.cook(*args) + result = Oneboxer.apply(cooked, topic_id: @topic_id) do |url, _| @found_oneboxes = true Oneboxer.invalidate(url) if args.last[:invalidate_oneboxes] Oneboxer.cached_onebox(url) end + cooked = result.to_html if result.changed? cooked end