tangled
alpha
login
or
join now
isuggest.selfce.st
/
strand
3
fork
atom
alternative tangled frontend (extremely wip)
3
fork
atom
overview
issues
pulls
pipelines
fix: simple early returns
serenity
1 week ago
abf15514
8da5ac25
+4
1 changed file
expand all
collapse all
unified
split
src
lib
queries
resolve-pinned-repos.ts
+4
src/lib/queries/resolve-pinned-repos.ts
···
6
6
import { z } from "zod/v4";
7
7
8
8
export const resolvePinnedRepos = async (uris: string[]) => {
9
9
+
if (uris.length === 0) return [];
10
10
+
9
11
const sanitisedUris = uris.filter((uri) => {
10
12
if (!uri.startsWith("at://")) return false;
11
13
if (uri.split("/")[3] !== "sh.tangled.repo") return false;
12
14
if (uri.split("/").length !== 5) return false;
13
15
return true;
14
16
});
17
17
+
18
18
+
if (sanitisedUris.length === 0) return [];
15
19
16
20
const params = new URLSearchParams();
17
21
sanitisedUris.forEach((uri) => {