From dd5885bf12684e204bc388d2fc60a690493ba083 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 15 Mar 2013 15:42:21 -0400 Subject: [PATCH] FIX: Twitter tags were using `property` instead of `name`. --- app/helpers/application_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ec8565cbf97..82e8cfb3626 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -42,12 +42,12 @@ module ApplicationHelper # Add opengraph tags result = tag(:meta, property: 'og:site_name', content: SiteSetting.title) << "\n" - result << tag(:meta, property: 'twitter:card', content: "summary") + result << tag(:meta, name: 'twitter:card', content: "summary") [:image, :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" - result << tag(:meta, {property: "twitter:#{property}", content: opts[property]}, nil, escape) << "\n" + result << tag(:meta, {name: "twitter:#{property}", content: opts[property]}, nil, escape) << "\n" end end