mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-07 06:39:54 +02:00
Fix GetImmediateReply
When scanning an event with positional "e" tags the reply is the last one
This commit is contained in:
@ -16,7 +16,7 @@ func GetImmediateReply(tags nostr.Tags) *nostr.Tag {
|
|||||||
var root *nostr.Tag
|
var root *nostr.Tag
|
||||||
var lastE *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]
|
tag := tags[i]
|
||||||
|
|
||||||
if len(tag) < 2 {
|
if len(tag) < 2 {
|
||||||
|
Reference in New Issue
Block a user