mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 01:49:40 +05:00
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:
parent
9a5d1eb6bd
commit
82e38f02b4
6 changed files with 131 additions and 35 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue