diff --git a/public/docs/release-notes.md b/public/docs/release-notes.md
index 79c0d68f1..fee0a924a 100644
--- a/public/docs/release-notes.md
+++ b/public/docs/release-notes.md
@@ -5,6 +5,9 @@
### Enhancements
- Add a pointer to Mermaid 9.1.7 documentation, which is what HedgeDoc 1 supports.
+### Bugfixes
+- Fix a crash when having numeric-only values in opengraph frontmatter
+
## 1.9.9 2023-07-30
HedgeDoc has a new slogan! See [our announcement](https://community.hedgedoc.org/t/and-the-new-slogan-is/) for the details.
diff --git a/public/views/hedgedoc/head.ejs b/public/views/hedgedoc/head.ejs
index c2321fccf..27ecffb7b 100644
--- a/public/views/hedgedoc/head.ejs
+++ b/public/views/hedgedoc/head.ejs
@@ -6,8 +6,8 @@
<%- include('../includes/favicon') %>
<% for (var og in opengraph) { %>
-<% if (opengraph.hasOwnProperty(og) && opengraph[og].trim() !== '') { %>
-
+<% if (opengraph.hasOwnProperty(og) && String(opengraph[og]).trim() !== '') { %>
+
<% }} if (!opengraph.hasOwnProperty('image')) { %>