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:
		@@ -80,9 +80,9 @@ describe 'stream_entries/show.html.haml', without_verify_partial_doubles: true d
 | 
			
		||||
 | 
			
		||||
    header_tags = view.content_for(:header_tags)
 | 
			
		||||
 | 
			
		||||
    expect(header_tags).to match(%r{<meta content='.+' property='og:title'>})
 | 
			
		||||
    expect(header_tags).to match(%r{<meta content='article' property='og:type'>})
 | 
			
		||||
    expect(header_tags).to match(%r{<meta content='.+' property='og:image'>})
 | 
			
		||||
    expect(header_tags).to match(%r{<meta content='http://.+' property='og:url'>})
 | 
			
		||||
    expect(header_tags).to match(%r{<meta content=".+" property="og:title" />})
 | 
			
		||||
    expect(header_tags).to match(%r{<meta content="article" property="og:type" />})
 | 
			
		||||
    expect(header_tags).to match(%r{<meta content=".+" property="og:image" />})
 | 
			
		||||
    expect(header_tags).to match(%r{<meta content="http://.+" property="og:url" />})
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user