aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/header_opengraph_image.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/header_opengraph_image.html')
-rw-r--r--templates/web/base/header_opengraph_image.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/web/base/header_opengraph_image.html b/templates/web/base/header_opengraph_image.html
index 7ec1aabb0..4cd106fc8 100644
--- a/templates/web/base/header_opengraph_image.html
+++ b/templates/web/base/header_opengraph_image.html
@@ -1,4 +1,13 @@
+ [% IF problem.photo %]
+ [% photo = problem.photos.first %]
+ [% data = problem.get_first_image_og %]
+ <meta property="og:image" content="[% c.cobrand.base_url %][% photo.url_og %]">
+ <meta property="og:image:type" content="[% data.content_type %]">
+ <meta property="og:image:width" content="[% data.width %]">
+ <meta property="og:image:height" content="[% data.height %]">
+ [% ELSE %]
<meta property="og:image" content="[% c.cobrand.base_url %]/cobrands/fixmystreet/images/fms-og_image.jpg">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
+ [% END %]