- tags.map do |property, content|
- tag(:meta, :property => property, :content => content)
- end.join("").html_safe
+ safe_join(tags.map do |property, content|
+ tag.meta(:property => property, :content => content)
+ end, "\n")
+ end
+
+ private
+
+ def og_image_url(og_image)
+ begin
+ return Addressable::URI.join(root_url, og_image).normalize if og_image
+ rescue Addressable::URI::InvalidURIError
+ # return default image
+ end
+ image_url("osm_logo_256.png")