Add support for structured data and more OpenGraph tags to link cards (#16938)

Save preview cards under their canonical URL

Increase max redirects to follow from 2 to 3
This commit is contained in:
Eugen Rochko
2021-11-05 23:23:05 +01:00
committed by GitHub
parent 989c67d29d
commit 39cdf61ab7
5 changed files with 260 additions and 52 deletions

View File

@ -1,7 +1,7 @@
require 'rails_helper'
RSpec.describe FetchLinkCardService, type: :service do
subject { FetchLinkCardService.new }
subject { described_class.new }
before do
stub_request(:get, 'http://example.xn--fiqs8s/').to_return(request_fixture('idn.txt'))