mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 13:09:33 -06:00
2f28ba318c
* FEATURE: Onebox can match engines based on the content_type `FinalDestination` now returns the `content_type` of a resolved URL. `Oneboxer` passes this value to `Onebox` itself. Onebox engines can now specify a `matches_content_type` regex of content_types that the engine can handle, regardless of the URL. `ImageOnebox` will match URLs with a content type of `image/png`, `jpg`, `gif`, `bmp`, `tif`, etc. This will allow images that exist at a URL without a file type extension to be correctly rendered, assuming a valid `content_type` is returned. |
||
---|---|---|
.. | ||
engine | ||
mixins | ||
templates | ||
discourse_onebox_sanitize_config.rb | ||
engine.rb | ||
file_type_finder.rb | ||
helpers.rb | ||
layout_support.rb | ||
layout.rb | ||
matcher.rb | ||
oembed.rb | ||
open_graph.rb | ||
preview.rb | ||
sanitize_config.rb | ||
status_check.rb | ||
template_support.rb | ||
view.rb |