This commit is contained in:
daniel31x13
2024-11-12 23:12:20 -05:00
parent 019790791b
commit cbb7a666cd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ export default async function postLink(
let linkType = "url";
let imageExtension = "png";
if (!link.url) linkType = link.type;
if (!link.url) linkType = link.type || "url";
else if (contentType === "application/pdf") linkType = "pdf";
else if (contentType?.startsWith("image")) {
linkType = "image";