redirecter for ao3 that adds opengraph metadata

fix the opengraph images for series and chapters wheeze

Changed files
+2 -2
src
app
series
[seriesId]
works
[workId]
chapters
[chapterId]
+1 -1
src/app/series/[seriesId]/opengraph-image.jsx
··· 18 18 const addr = `series/${seriesId}` 19 19 const data = await getSeries({seriesId: seriesId}) 20 20 if (data.locked) return OGImageLocked({theme: theme}) 21 - const imageParams = await sanitizeData({type: 'series', data: data, props: defaults}) 21 + const imageParams = await sanitizeData({type: 'series', data: data, props: new URLSearchParams(defaults)}) 22 22 const theme = imageParams.theme 23 23 const baseFont = baseFonts[imageParams.baseFont].displayName 24 24 const titleFont = titleFonts[imageParams.titleFont].displayName
+1 -1
src/app/works/[workId]/chapters/[chapterId]/opengraph-image.jsx
··· 18 18 const addr = `works/${workId}/chapters/${chapterId}` 19 19 const data = await getWork({workId: workId, chapterId: chapterId}) 20 20 if (data.locked) return OGImageLocked({theme: process.env.DEFAULT_THEME}) 21 - const imageParams = await sanitizeData({type: 'work', data: data, props: defaults}) 21 + const imageParams = await sanitizeData({type: 'work', data: data, props: new URLSearchParams(defaults)}) 22 22 const theme = imageParams.theme 23 23 const baseFont = baseFonts[imageParams.baseFont].displayName 24 24 const titleFont = titleFonts[imageParams.titleFont].displayName