mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
fix(open-graph): update twitter:image URL to use real origin variable
- Changed the generation of the twitter:image meta tag to utilize the realOrigin variable instead of request.nextUrl.origin, ensuring accurate image URLs for Open Graph tags. Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -97,7 +97,7 @@ const createAndInsertOpenGraphMeta = (
|
||||
'twitter:card': 'summary_large_image',
|
||||
'twitter:title': photo.id,
|
||||
'twitter:description': photo.description || '',
|
||||
'twitter:image': `${request.nextUrl.origin}/og/${photo.id}`,
|
||||
'twitter:image': `${realOrigin}/og/${photo.id}`,
|
||||
}
|
||||
|
||||
for (const [name, content] of Object.entries(twitterTags)) {
|
||||
|
||||
Reference in New Issue
Block a user