mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-28 17:50:28 +08:00
Users can specify anchors address in ENS
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
+4
-2
@@ -107,13 +107,15 @@ export async function getReadme(
|
||||
}
|
||||
|
||||
export function path(
|
||||
opts: { urn: string; org?: string; commit?: string; path?: string }
|
||||
opts: { urn: string; org?: string; user?: string; commit?: string; path?: string }
|
||||
): string {
|
||||
const { urn, org, commit, path } = opts;
|
||||
const { urn, org, user, commit, path } = opts;
|
||||
const result = [];
|
||||
|
||||
if (org) {
|
||||
result.push("orgs", org);
|
||||
} else if (user) {
|
||||
result.push("users", user);
|
||||
}
|
||||
result.push("projects", urn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user