grasp: repository path uses the pubkey now.
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
@@ -142,6 +143,10 @@ func (gs *GraspServer) validatePush(
|
||||
return nil
|
||||
}
|
||||
|
||||
func (gs *GraspServer) getRepositoryPath(pubkey nostr.PubKey, repoName string) string {
|
||||
return filepath.Join(gs.RepositoryDir, pubkey.Hex(), repoName)
|
||||
}
|
||||
|
||||
// repoExists checks if a repository has an announcement event (kind 30617)
|
||||
func (gs *GraspServer) repoExists(pubkey nostr.PubKey, repoName string) bool {
|
||||
for range gs.Relay.QueryStored(context.Background(), nostr.Filter{
|
||||
|
||||
Reference in New Issue
Block a user