remove image opengraph tags

This commit is contained in:
Jeff Atwood 2014-12-24 00:30:55 -08:00
parent 3bad0e3a33
commit cd3703e441

View File

@ -111,7 +111,9 @@ module ApplicationHelper
result << tag(:meta, name: 'twitter:card', content: "summary")
[:image, :url, :title, :description, 'image:width', 'image:height'].each do |property|
# I removed image related opengraph tags from here for now due to
# https://meta.discourse.org/t/x/22744/18
[:url, :title, :description].each do |property|
if opts[property].present?
escape = (property != :image)
result << tag(:meta, {property: "og:#{property}", content: opts[property]}, nil, escape) << "\n"