Clean up and improve generated OpenGraph tags (#4901)
- Return all images as og:image - Return videos as og:image (preview) and og:video - Return profile:username on profiles
This commit is contained in:
@ -42,4 +42,8 @@ module ApplicationHelper
|
||||
|
||||
content_tag(:i, nil, attributes.merge(class: class_names.join(' ')))
|
||||
end
|
||||
|
||||
def opengraph(property, content)
|
||||
tag(:meta, content: content, property: property)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user