feat: add collection favorite button and delete button if own collection

fix: private collection loading
fix: wrong lists bar percentages
This commit is contained in:
Kentai Radiquum 2024-08-14 16:24:03 +05:00
parent 9a5d1eb6bd
commit 82e38f02b4
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
6 changed files with 131 additions and 35 deletions

View file

@ -13,13 +13,15 @@ export async function generateMetadata(
const previousOG = (await parent).openGraph;
return {
title: "коллекция - " + collection.collection.title,
description: collection.collection.description,
title: collection.collection
? "коллекция - " + collection.collection.title
: "Приватная коллекция",
description: collection.collection && collection.collection.description,
openGraph: {
...previousOG,
images: [
{
url: collection.collection.image, // Must be an absolute URL
url: collection.collection && collection.collection.image, // Must be an absolute URL
width: 600,
height: 800,
},