]> cat aescling's git repositories - mastodon.git/commit
Add cache for OEmbed endpoints to avoid extra HTTP requests (#12403)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 17 Nov 2019 17:40:33 +0000 (18:40 +0100)
committerGitHub <noreply@github.com>
Sun, 17 Nov 2019 17:40:33 +0000 (18:40 +0100)
commitd14e74eff52352f1a2fb4bc2053bbb28c1aa29e0
tree5fd20f50b1bdc8315d5afa59ea66e6c912d9931e
parent5a2c0707f163f14565d186db48bf0b4fe0b05b4f
Add cache for OEmbed endpoints to avoid extra HTTP requests (#12403)

* add youtube oembed endpoint

* add check for oembed endpoint

* change unless for a more readable if

* clear blank lines

* endpoint via https

* Fix string literal in condition

* use cache for endpoints

* use cache for endpoints

* clean up and adding check

* clean up and remove redundant return

* add html check

* add false to return

* use double quotes

* use double quotes

* Clean up
app/services/fetch_link_card_service.rb
app/services/fetch_oembed_service.rb
spec/services/fetch_oembed_service_spec.rb