lib/onebox/engine/google_docs_onebox.rb in onebox-1.5.47 vs lib/onebox/engine/google_docs_onebox.rb in onebox-1.5.48
- old
+ new
@@ -23,11 +23,11 @@
protected
def data
og_data = get_og_data
result = { link: link,
- title: og_data[:title],
- description: og_data[:description],
+ title: og_data[:title] || "Google #{shorttype.to_s.capitalize}",
+ description: og_data[:description] || "This #{shorttype.to_s.chop.capitalize} is private",
type: shorttype
}
result
end