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