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