]> cat aescling's git repositories - mastodon.git/commit
Ignore low-confidence CharlockHolmes guesses when parsing link cards (#9510)
authorThibG <thib@sitedethib.com>
Mon, 17 Dec 2018 18:19:45 +0000 (19:19 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 17 Dec 2018 18:19:45 +0000 (19:19 +0100)
commite709b8da0d685d3cc48d430a9761896094f67d72
tree8d60d548237c7478bb974e2813288fdda11a8862
parent4ede51743e5b9121a49e9131f91cf012fab410f8
 Ignore low-confidence CharlockHolmes guesses when parsing link cards (#9510)

* Add failing test for windows-1251 link cards

* Ignore low-confidence CharlockHolmes guesses

Fixes #9466

* Fix no method error when charlock holmes cannot detect charset
app/services/fetch_link_card_service.rb
spec/fixtures/requests/windows-1251.txt [new file with mode: 0644]
spec/services/fetch_link_card_service_spec.rb