mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-29 11:12:04 +01:00
nip10: rename GetImmediateReply() -> GetImmediateParent().
This commit is contained in:
parent
550cf835be
commit
e69eeb8938
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user