mirror of
https://github.com/fiatjaf/khatru.git
synced 2026-03-11 16:15:54 +01:00
fix(deleting): handle relay URLs with port numbers using SplitN
This commit is contained in:
@@ -19,7 +19,7 @@ func (rl *Relay) handleDeleteRequest(ctx context.Context, evt *nostr.Event) erro
|
||||
case "e":
|
||||
f = nostr.Filter{IDs: []string{tag[1]}}
|
||||
case "a":
|
||||
spl := strings.Split(tag[1], ":")
|
||||
spl := strings.SplitN(tag[1], ":", 3)
|
||||
if len(spl) != 3 {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user