this is a slightly round about way of making our self oneboxes sane

shrunk avatar to 60px, added global whitelisting
This commit is contained in:
Sam
2013-05-01 16:37:27 +10:00
parent 67372a8a0d
commit e4a76812a6
10 changed files with 67 additions and 33 deletions

View File

@@ -43,7 +43,7 @@ module ApplicationHelper
result = tag(:meta, property: 'og:site_name', content: SiteSetting.title) << "\n"
result << tag(:meta, name: 'twitter:card', content: "summary")
[:image, :url, :title, :description].each do |property|
[:image, :url, :title, :description, 'image:width', 'image:height'].each do |property|
if opts[property].present?
escape = (property != :image)
result << tag(:meta, {property: "og:#{property}", content: opts[property]}, nil, escape) << "\n"