mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 02:25:48 +08:00
remove image opengraph tags
This commit is contained in:
parent
3bad0e3a33
commit
cd3703e441
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user