mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 21:45:25 +08:00
Follow-up to #37849 which added og:image:width and og:image:height. This adds the og:image:type structured property as well, providing the image MIME type (e.g. image/jpeg, image/png) derived from the upload's extension via MiniMime. Also adds image_width, image_height, and image_type helper methods to TopicView so views don't have to reach into the upload directly, and reformats crawlable_meta_data calls in views to one argument per line for readability. https://meta.discourse.org/t/395484 |
||
|---|---|---|
| .. | ||
| application_helper_spec.rb | ||
| email_helper_spec.rb | ||
| redis_snapshot_helper.rb | ||
| topics_helper_spec.rb | ||
| user_notifications_helper_spec.rb | ||