bug fix
This commit is contained in:
parent
43d50dfd1b
commit
dfcc271343
|
@ -221,7 +221,7 @@ export default function LinkDetails({
|
|||
width={1280}
|
||||
height={720}
|
||||
alt=""
|
||||
className="object-cover scale-105"
|
||||
className="object-cover scale-105 object-center h-full"
|
||||
style={{
|
||||
filter: "blur(1px)",
|
||||
}}
|
||||
|
|
|
@ -412,7 +412,7 @@ const useUpdatePreview = () => {
|
|||
`/api/v1/archives/${linkId}?format=` + ArchivedFormat.jpeg,
|
||||
{
|
||||
body: formBody,
|
||||
method: "POST",
|
||||
method: "PUT",
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -206,7 +206,7 @@ export default async function Index(req: NextApiRequest, res: NextApiResponse) {
|
|||
});
|
||||
}
|
||||
// To update the link preview
|
||||
else if (req.method === "PUT" && format === ArchivedFormat.jpeg) {
|
||||
else if (req.method === "PUT") {
|
||||
if (process.env.NEXT_PUBLIC_DEMO === "true")
|
||||
return res.status(400).json({
|
||||
response:
|
||||
|
|
Ŝarĝante…
Reference in New Issue