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
Showing
- Gemfile 1 addition, 0 deletionsGemfile
- Gemfile.lock 8 additions, 0 deletionsGemfile.lock
- app/assets/javascripts/components/actions/cards.jsx 1 addition, 1 deletionapp/assets/javascripts/components/actions/cards.jsx
- app/assets/javascripts/components/features/status/components/card.jsx 51 additions, 8 deletions...avascripts/components/features/status/components/card.jsx
- app/assets/stylesheets/components.scss 22 additions, 0 deletionsapp/assets/stylesheets/components.scss
- app/controllers/api/oembed_controller.rb 14 additions, 2 deletionsapp/controllers/api/oembed_controller.rb
- app/helpers/http_helper.rb 13 additions, 0 deletionsapp/helpers/http_helper.rb
- app/lib/formatter.rb 6 additions, 2 deletionsapp/lib/formatter.rb
- app/lib/provider_discovery.rb 36 additions, 0 deletionsapp/lib/provider_discovery.rb
- app/lib/sanitize_config.rb 42 additions, 0 deletionsapp/lib/sanitize_config.rb
- app/models/preview_card.rb 4 additions, 0 deletionsapp/models/preview_card.rb
- app/services/fetch_atom_service.rb 2 additions, 4 deletionsapp/services/fetch_atom_service.rb
- app/services/fetch_link_card_service.rb 43 additions, 8 deletionsapp/services/fetch_link_card_service.rb
- app/services/follow_remote_account_service.rb 2 additions, 5 deletionsapp/services/follow_remote_account_service.rb
- app/services/post_status_service.rb 1 addition, 1 deletionapp/services/post_status_service.rb
- app/views/api/v1/statuses/card.rabl 3 additions, 1 deletionapp/views/api/v1/statuses/card.rabl
- config/initializers/doorkeeper.rb 1 addition, 1 deletionconfig/initializers/doorkeeper.rb
- config/initializers/kaminari_config.rb 1 addition, 0 deletionsconfig/initializers/kaminari_config.rb
- config/initializers/oembed.rb 4 additions, 0 deletionsconfig/initializers/oembed.rb
- db/migrate/20170425202925_add_oembed_to_preview_cards.rb 12 additions, 0 deletionsdb/migrate/20170425202925_add_oembed_to_preview_cards.rb
Loading
Please register or sign in to comment