Commit Graph

6 Commits (3c6503038ecad20f1b8fa0c9ea7e46087c6e3f22)

Author SHA1 Message Date
nullkal 007ab330e6 Use charlock_holmes instead of nkf at FetchLinkCardService ()
* Specs for language detection

* Use CharlockHolmes instead of NKF

* Correct mistakes

* Correct style

* Set hint_enc instead of falling back and strip_tags

* Improve specs

* Add dependencies
abcang 5e6acf9601 Fix Nokogiri::HTML at FetchLinkCardService ()
Eugen Rochko 1efda1c453 Fix - Resolve preview cards for remote statuses as well as local ones ()
Eugen Rochko a231f915a0 Fix - Send HEAD request ahead of GET when fetching URL previews ()
Eugen Rochko 88725d6ce8 OEmbed support for PreviewCard ()
* OEmbed support for PreviewCard

* Improve ProviderDiscovery code failure treatment

* Do not crawl links if there is a content warning, since those
don't display a link card anyway

* Reset db schema

* Fresh migrate

* Fix rubocop style issues
Fix  - return existing access token when applicable instead of creating new

* Fix test

* Extract http client to helper

* Improve oembed controller
Eugen 17c591ffba Punycode URI normalization ()
* Fix  - Whenever about to send a HTTP request, normalize the URI

* Add test for IDN request in FetchLinkCardService

* Perform IDN normalization on domains before they are stored in the DB