"a" deletions split only 3.

see https://github.com/fiatjaf/khatru/pull/60
This commit is contained in:
fiatjaf
2025-09-22 16:46:37 -03:00
parent 805003b39b
commit 04e095eb1b

View File

@@ -23,7 +23,7 @@ func (rl *Relay) handleDeleteRequest(ctx context.Context, evt nostr.Event) error
}
f = nostr.Filter{IDs: []nostr.ID{id}}
case "a":
spl := strings.Split(tag[1], ":")
spl := strings.SplitN(tag[1], ":", 3)
if len(spl) != 3 {
continue
}