From c9381154a6013fedd3923f1201f4f4c5f301c4ba Mon Sep 17 00:00:00 2001 From: DanielDerefaka Date: Thu, 1 Jan 2026 11:41:11 +0100 Subject: [PATCH] feat(status-page): add og:type and og:image Open Graph meta tags Added additional Open Graph meta tags to status pages for better social media sharing: - og:type (set to "website") - og:image (uses the status page icon if configured) This complements the existing og:title and og:description tags. Fixes #6514 --- server/model/status_page.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/model/status_page.js b/server/model/status_page.js index 224441127..9842f0019 100644 --- a/server/model/status_page.js +++ b/server/model/status_page.js @@ -132,6 +132,14 @@ class StatusPage extends BeanModel { let ogDescription = $("").attr("content", description155); head.append(ogDescription); + let ogType = $(""); + head.append(ogType); + + if (statusPage.icon) { + let ogImage = $("").attr("content", statusPage.icon); + head.append(ogImage); + } + // Preload data // Add jsesc, fix https://github.com/louislam/uptime-kuma/issues/2186 const escapedJSONObject = jsesc(await StatusPage.getStatusPageData(statusPage), {