From 8389a1a78db79823d7dc01a605e9716b9a754c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Fri, 23 May 2025 17:10:09 +0200 Subject: [PATCH] fix(html-transformer): bad outName for og:locale:alternate (FIR-2101) (#1597) * fix(html-transformer): bad outName for og:locale:alternate * oops --- apps/api/sharedLibs/html-transformer/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/sharedLibs/html-transformer/src/lib.rs b/apps/api/sharedLibs/html-transformer/src/lib.rs index eb3be8b9..1e4f8302 100644 --- a/apps/api/sharedLibs/html-transformer/src/lib.rs +++ b/apps/api/sharedLibs/html-transformer/src/lib.rs @@ -90,7 +90,7 @@ pub unsafe extern "C" fn extract_metadata(html: *const libc::c_char) -> *mut lib let attrs = meta.attributes.borrow(); if let Some(content) = attrs.get("content") { - if let Some(v) = out.get_mut("og:locale:alternate") { + if let Some(v) = out.get_mut("ogLocaleAlternate") { match v { Value::Array(x) => { x.push(Value::String(content.to_string())); @@ -98,7 +98,7 @@ pub unsafe extern "C" fn extract_metadata(html: *const libc::c_char) -> *mut lib _ => unreachable!(), } } else { - out.insert("og:locale:alternate".to_string(), Value::Array(vec! [Value::String(content.to_string())])); + out.insert("ogLocaleAlternate".to_string(), Value::Array(vec! [Value::String(content.to_string())])); } } }