From e69eeb8938a3ae1e4458a845b568a7e9659d41e2 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 23 Jan 2025 17:52:26 -0300 Subject: [PATCH] nip10: rename GetImmediateReply() -> GetImmediateParent(). --- nip10/nip10.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nip10/nip10.go b/nip10/nip10.go index 289c018..174e7bb 100644 --- a/nip10/nip10.go +++ b/nip10/nip10.go @@ -12,7 +12,12 @@ func GetThreadRoot(tags nostr.Tags) *nostr.Tag { return tags.GetFirst([]string{"e", ""}) } +// Deprecated: this was misnamed, use GetImmediateParent instead. func GetImmediateReply(tags nostr.Tags) *nostr.Tag { + return GetImmediateParent(tags) +} + +func GetImmediateParent(tags nostr.Tags) *nostr.Tag { var root *nostr.Tag var lastE *nostr.Tag