fix(deleting): handle relay URLs with port numbers using SplitN

This commit is contained in:
clark
2025-09-22 23:08:33 +08:00
committed by fiatjaf_
parent 668c41b988
commit 8d5fc324f7

View File

@@ -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
}