⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
minor fix
daniel31x13ced51e480110
diff --git a/docker-compose.yml b/docker-compose.ymlindex f1ff559d..63a87403 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -11,7 +11,8 @@ services:environment:- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgresrestart: always- image: ghcr.io/linkwarden/linkwarden:latest+ # build: . # uncomment this line to build from source+ image: ghcr.io/linkwarden/linkwarden:latest # comment this line to build from sourceports:- 3000:3000volumes:diff --git a/lib/api/archiveHandler.ts b/lib/api/archiveHandler.tsindex a1516fbb..ce919b3d 100644--- a/lib/api/archiveHandler.ts+++ b/lib/api/archiveHandler.ts@@ -50,11 +50,11 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {let imageExtension = "png";if (!link.url) linkType = link.type;- else if (contentType === "application/pdf") linkType = "pdf";+ else if (contentType?.includes("application/pdf")) linkType = "pdf";else if (contentType?.startsWith("image")) {linkType = "image";- if (contentType === "image/jpeg") imageExtension = "jpeg";- else if (contentType === "image/png") imageExtension = "png";+ if (contentType.includes("image/jpeg")) imageExtension = "jpeg";+ else if (contentType.includes("image/png")) imageExtension = "png";}const user = link.collection?.owner;