From 5ba035764042b0475f7785df35a3e040e18f7519 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Wed, 11 Feb 2026 16:23:40 +0400 Subject: [PATCH] handle trailing brid.gy / --- app/api/inngest/functions/sync_document_metadata.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/inngest/functions/sync_document_metadata.ts b/app/api/inngest/functions/sync_document_metadata.ts index 79b95de7..8dc0c775 100644 --- a/app/api/inngest/functions/sync_document_metadata.ts +++ b/app/api/inngest/functions/sync_document_metadata.ts @@ -23,7 +23,9 @@ export const sync_document_metadata = inngest.createFunction( ?.replace("at://", ""); if (!doc) return null; const isBridgy = !!doc?.service?.find( - (s) => s.serviceEndpoint === "https://atproto.brid.gy", + (s) => + typeof s.serviceEndpoint === "string" && + s.serviceEndpoint.includes("atproto.brid.gy"), ); return { handle: handle ?? null, isBridgy, doc }; }); -- 2.51.2