tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
a tool for shared writing and social publishing
284
fork
atom
overview
issues
27
pulls
pipelines
handle trailing brid.gy /
awarm.space
1 day ago
5ba03576
9c5c5c6b
+3
-1
1 changed file
expand all
collapse all
unified
split
app
api
inngest
functions
sync_document_metadata.ts
+3
-1
app/api/inngest/functions/sync_document_metadata.ts
···
23
23
?.replace("at://", "");
24
24
if (!doc) return null;
25
25
const isBridgy = !!doc?.service?.find(
26
26
-
(s) => s.serviceEndpoint === "https://atproto.brid.gy",
26
26
+
(s) =>
27
27
+
typeof s.serviceEndpoint === "string" &&
28
28
+
s.serviceEndpoint.includes("atproto.brid.gy"),
27
29
);
28
30
return { handle: handle ?? null, isBridgy, doc };
29
31
});