0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/spec/helpers
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
..
application_helper_spec.rb FIX: add og:image:type to OpenGraph tags (#37854) 2026-02-17 16:05:00 +01:00
email_helper_spec.rb DEV: update base url links to respect subfolder installs (#27740) 2024-07-09 12:42:38 +04:00
redis_snapshot_helper.rb DEV: Call Discourse.redis.flushdb after the end of each test (#29117) 2024-10-09 07:19:31 +08:00
topics_helper_spec.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00
user_notifications_helper_spec.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00