mirror of
https://github.com/aljazceru/haven.git
synced 2026-02-02 12:14:27 +01:00
test remove auth
This commit is contained in:
6
main.go
6
main.go
@@ -292,9 +292,9 @@ func makeNewRelay(relayType string, w http.ResponseWriter, r *http.Request) *kha
|
||||
bl := blossom.New(outboxRelay, addr)
|
||||
bl.Store = blossom.EventStoreBlobIndexWrapper{Store: outboxDB, ServiceURL: bl.ServiceURL}
|
||||
bl.StoreBlob = append(bl.StoreBlob, func(ctx context.Context, sha256 string, body []byte) error {
|
||||
if khatru.GetAuthed(ctx) != nPubToPubkey(config.OwnerNpub) {
|
||||
return fmt.Errorf("auth-required: only the relay owner can store media")
|
||||
}
|
||||
// if khatru.GetAuthed(ctx) != nPubToPubkey(config.OwnerNpub) {
|
||||
// return fmt.Errorf("auth-required: only the relay owner can store media")
|
||||
// }
|
||||
|
||||
file, err := fs.Create(config.BlossomPath + sha256)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user