mirror of
https://github.com/discourse/discourse.git
synced 2025-02-02 13:31:44 +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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user