lib/onebox/open_graph.rb in onebox-2.2.6 vs lib/onebox/open_graph.rb in onebox-2.2.8
- old
+ new
@@ -30,10 +30,11 @@
method_name = attr.to_s
if method_name.end_with?(*integer_suffixes)
value.to_i
elsif method_name.end_with?(*url_suffixes)
- ::Onebox::Helpers.normalize_url_for_output(value)
+ result = Onebox::Helpers.normalize_url_for_output(value)
+ result unless Onebox::Helpers::blank?(result)
else
value
end
end