]> cat aescling's git repositories - mastodon.git/commit
OEmbed support for PreviewCard (#2337)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 27 Apr 2017 12:42:22 +0000 (14:42 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Apr 2017 12:42:22 +0000 (14:42 +0200)
commit88725d6ce85115ea3b0652007db5d40a1c069be3
tree7a8965abda1cfc3b6c319ea19ee216755ac2f2df
parentbe0a01145b5f303c5c506858146ccf6c6d5cee72
OEmbed support for PreviewCard (#2337)

* 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 #1681 - return existing access token when applicable instead of creating new

* Fix test

* Extract http client to helper

* Improve oembed controller
22 files changed:
Gemfile
Gemfile.lock
app/assets/javascripts/components/actions/cards.jsx
app/assets/javascripts/components/features/status/components/card.jsx
app/assets/stylesheets/components.scss
app/controllers/api/oembed_controller.rb
app/helpers/http_helper.rb [new file with mode: 0644]
app/lib/formatter.rb
app/lib/provider_discovery.rb [new file with mode: 0644]
app/lib/sanitize_config.rb [new file with mode: 0644]
app/models/preview_card.rb
app/services/fetch_atom_service.rb
app/services/fetch_link_card_service.rb
app/services/follow_remote_account_service.rb
app/services/post_status_service.rb
app/views/api/v1/statuses/card.rabl
config/initializers/doorkeeper.rb
config/initializers/kaminari_config.rb
config/initializers/oembed.rb [new file with mode: 0644]
db/migrate/20170425202925_add_oembed_to_preview_cards.rb [new file with mode: 0644]
db/schema.rb
spec/services/fetch_link_card_service_spec.rb