mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-10-28 22:19:03 +08:00
remove the use of previousimages for og-image
This commit is contained in:
@@ -26,7 +26,6 @@ export async function generateMetadata({ params, searchParams }: Props, parent:
|
|||||||
if (!iconsData[icon]) {
|
if (!iconsData[icon]) {
|
||||||
notFound()
|
notFound()
|
||||||
}
|
}
|
||||||
const previousImages = (await parent).openGraph?.images || []
|
|
||||||
const authorData = await getAuthorData(iconsData[icon].update.author.id)
|
const authorData = await getAuthorData(iconsData[icon].update.author.id)
|
||||||
const authorName = authorData.name || authorData.login
|
const authorName = authorData.name || authorData.login
|
||||||
const updateDate = new Date(iconsData[icon].update.timestamp)
|
const updateDate = new Date(iconsData[icon].update.timestamp)
|
||||||
|
|||||||
Reference in New Issue
Block a user