From b7ec430166bbd88e20c50ecbfc5c9a840756aaa3 Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Wed, 31 May 2023 00:10:37 +0200 Subject: [PATCH] Fix GetImmediateReply When scanning an event with positional "e" tags the reply is the last one --- nip10/nip10.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nip10/nip10.go b/nip10/nip10.go index 81c1a75..8b8e9ad 100644 --- a/nip10/nip10.go +++ b/nip10/nip10.go @@ -16,7 +16,7 @@ func GetImmediateReply(tags nostr.Tags) *nostr.Tag { var root *nostr.Tag var lastE *nostr.Tag - for i := len(tags) - 1; i >= 0; i-- { + for i := 0; i <= len(tags)-1; i++ { tag := tags[i] if len(tag) < 2 {