mirror of
https://github.com/discourse/discourse.git
synced 2025-03-10 07:45:30 +08:00
Cosmetic chnages removed
This commit is contained in:
parent
29947f6e95
commit
7518854ac2
@ -14,13 +14,14 @@ class PostAnalyzer
|
|||||||
|
|
||||||
# What we use to cook posts
|
# What we use to cook posts
|
||||||
def cook(*args)
|
def cook(*args)
|
||||||
|
|
||||||
cooked = PrettyText.cook(*args)
|
cooked = PrettyText.cook(*args)
|
||||||
|
|
||||||
result = Oneboxer.apply(cooked, topic_id: @topic_id) do |url, _|
|
result = Oneboxer.apply(cooked, topic_id: @topic_id) do |url, _|
|
||||||
@found_oneboxes = true
|
@found_oneboxes = true
|
||||||
Oneboxer.invalidate(url) if args.last[:invalidate_oneboxes]
|
Oneboxer.invalidate(url) if args.last[:invalidate_oneboxes]
|
||||||
Oneboxer.cached_onebox(url)
|
Oneboxer.cached_onebox(url)
|
||||||
end
|
end
|
||||||
|
|
||||||
cooked = result.to_html if result.changed?
|
cooked = result.to_html if result.changed?
|
||||||
cooked
|
cooked
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user