FIX: Quoting Oneboxed content should exclude formatting (#13296)

* FIX: Quoting Oneboxed content should exclude formatting

When a post is quoted that includes Oneboxed content, we should not include the formatting generated by the Onebox. Rather, we should attempt to collapse the link referenced by the Onebox to a single line text link.

* DEV: fix tests
This commit is contained in:
jbrw
2021-06-07 13:03:53 -04:00
committed by GitHub
parent 36e0e6a322
commit 09bc95d46b
5 changed files with 34 additions and 10 deletions

View File

@ -208,7 +208,7 @@ describe Onebox::Engine::AmazonOnebox do
end
it "produces a placeholder" do
expect(onebox.placeholder_html).to include('<aside class="onebox amazon">')
expect(onebox.placeholder_html).to include('<aside class="onebox amazon" data-onebox-src="https://www.amazon.com/dp/B0123ABCD3210">')
end
it "returns errors" do