lib/onebox/engine/google_docs_onebox.rb in onebox-1.8.19 vs lib/onebox/engine/google_docs_onebox.rb in onebox-1.8.20

- old
+ new

@@ -24,10 +24,10 @@ def data og_data = get_og_data result = { link: link, title: og_data[:title] || "Google #{shorttype.to_s.capitalize}", - description: og_data[:description] || "This #{shorttype.to_s.chop.capitalize} is private", + description: Sanitize.fragment(Onebox::Helpers.truncate(og_data[:description], 250)) || "This #{shorttype.to_s.chop.capitalize} is private", type: shorttype } result end