From 8d5fc324f7a0bb2af083d8566b531ca3357ee652 Mon Sep 17 00:00:00 2001 From: clark Date: Mon, 22 Sep 2025 23:08:33 +0800 Subject: [PATCH] fix(deleting): handle relay URLs with port numbers using SplitN --- deleting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deleting.go b/deleting.go index 1e066c4..52d69be 100644 --- a/deleting.go +++ b/deleting.go @@ -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 }