mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user