0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/app/views/topics
Régis Hanol 1d0bbde98e
FIX: add og:image:type to OpenGraph tags (#37854)
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
2026-02-17 16:05:00 +01:00
..
plain.html.erb FIX: add og:image:type to OpenGraph tags (#37854) 2026-02-17 16:05:00 +01:00
show.html.erb FIX: add og:image:type to OpenGraph tags (#37854) 2026-02-17 16:05:00 +01:00
show.rss.erb FIX: do not show spoiler content in RSS (#14277) 2021-09-08 20:19:43 +05:30