Commit 35b0f763 authored by danielgrippi's avatar danielgrippi

fix og tags for just text

parent 21fef136
......@@ -12,8 +12,7 @@ module OpenGraphHelper
end
def og_image(post)
tags = post.photos.map{|x| meta_tag_with_property('og:image', x.url(:thumb_large))}
tags << meta_tag_with_property('og:image', "#{root_url.chop}#{image_path('asterisk.png')}") if tags.empty?
tags = post.photos.map{|x| meta_tag_with_property('og:image', x.url(:thumb_large))} || []
tags.join(' ')
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment