summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorGijs <gijskruitbosch@gmail.com>2018-04-11 19:17:23 +0200
committerDylan William Hardison <dylan@hardison.net>2018-04-11 19:17:23 +0200
commitc84cf2484958fb4d664f3f41cbdac7b262950f9b (patch)
treee12be5c4f48e22e39fc09ea103d8ffd0dc64bbc2 /extensions
parent23ea8e84f734c39fc9c42c10c4bf2c3243762498 (diff)
downloadbugzilla-c84cf2484958fb4d664f3f41cbdac7b262950f9b.tar.gz
bugzilla-c84cf2484958fb4d664f3f41cbdac7b262950f9b.tar.xz
Bug 1451960 - Improve opengraph metadata for access-denied bugs
Diffstat (limited to 'extensions')
-rw-r--r--extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl7
1 files changed, 5 insertions, 2 deletions
diff --git a/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl b/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl
index 2d7c3379f..dc0dc1ad9 100644
--- a/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl
+++ b/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl
@@ -13,6 +13,9 @@
[% IF bug %]
<meta property="og:description"
content="[% bug.bug_status FILTER html %] ([% bug.assigned_to.login FILTER email FILTER html %]) in [% bug.product FILTER html %] - [% bug.component FILTER html %]. Last updated [% bug.delta_ts FILTER time('%Y-%m-%d') %].">
-[% ELSE %]
-<meta property="og:image" content="[% urlbase FILTER none %]extensions/OpenGraph/web/moz-social-bw-rgb-1200x1200.png">
+[% ELSIF error_message %]
+<meta property="og:description" content="[% error_message FILTER txt %]">
+[% END %]
+[% IF og_image %]
+<meta property="og:image" content="[% urlbase FILTER none %][% og_image FILTER html %]">
[% END %]