0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/app/views/users
Régis Hanol 55e992f507
FIX: add og:image:width and og:image:height to OpenGraph tags (#37849)
Facebook's crawler requires image dimension metadata to reliably display
image previews when Discourse links are shared. Currently, we only emit
`og:image` without the structured dimension properties, which causes
Facebook (and other consumers) to skip the image in share previews.

This adds `og:image:width` and `og:image:height` meta tags for topic
pages by exposing the image upload's dimensions through TopicView and
passing them to `crawlable_meta_data`. The dimensions are only emitted
when both width and height are available on the upload record.

https://meta.discourse.org/t/395484
2026-02-16 20:30:26 +01:00
..
omniauth_callbacks DEV: update more deprecated font awesome icon names (#30123) 2024-12-05 15:20:02 +08:00
admin_login.html.erb DEV: admin-login submit should be a button, not an input (#30156) 2024-12-06 11:48:15 -05:00
bookmarks.ics.erb
confirm_admin.html.erb
password_reset.html.erb
send_activation_email.html.erb
show.html.erb FIX: add og:image:width and og:image:height to OpenGraph tags (#37849) 2026-02-16 20:30:26 +01:00