Monorepo for Tangled tangled.org

appview: repo: trim leading @ from collaborator's handle

The "add collaborator" form currently fails if you submit a handle like `@example.com`, since the identity gets forwarded eventually directly to Bluesky's identity parse, which does not accept the `@` prefix for handles.

This change is targetted to only fix that one form.

Signed-off-by: phil <uniphil@gmail.com>

Changed files
+3
appview
repo
+3
appview/repo/repo.go
··· 742 742 return 743 743 } 744 744 745 + // remove a single leading `@`, to make @handle work with ResolveIdent 746 + collaborator = strings.TrimPrefix(collaborator, "@") 747 + 745 748 collaboratorIdent, err := rp.idResolver.ResolveIdent(r.Context(), collaborator) 746 749 if err != nil { 747 750 fail(fmt.Sprintf("'%s' is not a valid DID/handle.", collaborator), err)