fix(og): fall back to thumbnail when declared cover file is missing

WeChat link cards were pointing og:image at mindspace-cover paths that
never landed on disk; serve-time injection now uses thumbnail.png instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-07-04 14:07:49 +08:00
parent 29d9a87d4f
commit 03c46b37c3
4 changed files with 63 additions and 5 deletions
+1
View File
@@ -5493,6 +5493,7 @@ async function sendPublishFile(req, res, filePath) {
html,
embed,
context,
htmlFilePath: filePath,
userAgent: req.get('user-agent') || '',
preparePublicationHtmlForEmbed,
injectOgTags,