Weil ich die Spezifikationen falsch gelesen und dachte, es sei optional… Aber da die Breite und Höhe des Bildes es auch sind, sehe ich keinen Grund, es nicht ebenfalls hinzuzufügen.
main ← fix/og-image-type
opened 11:34PM - 16 Feb 26 UTC
Follow-up to #37849 which added og:image:width and og:image:height. This adds th… e 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
6 „Gefällt mir“