nip10: rename GetImmediateReply() -> GetImmediateParent().

This commit is contained in:
fiatjaf 2025-01-23 17:52:26 -03:00
parent 550cf835be
commit e69eeb8938

View File

@ -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