fix(oembed.sql): surface correct open graph images

This commit is contained in:
Cory Dransfeldt 2025-05-24 19:03:45 -07:00
parent 3dac23b171
commit 53e453ba04
No known key found for this signature in database
6 changed files with 24 additions and 44 deletions

View file

@ -18,7 +18,7 @@ class OembedHandler extends BaseHandler
if (!$requestUrl || $relativePath === '/') $this->sendResponse($this->buildResponse(
$globals['site_name'],
$globals['url'],
$globals['avatar'],
$globals['metadata']['open_graph_image'],
$globals
));
@ -66,7 +66,7 @@ class OembedHandler extends BaseHandler
$this->sendResponse($this->buildResponse(
$title,
$relativePath,
$globals['avatar'],
$globals['metadata']['open_graph_image'],
$globals
));
}