mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-15 08:37:11 +01:00
nip10: rename GetImmediateReply() -> GetImmediateParent().
This commit is contained in:
@@ -12,7 +12,12 @@ func GetThreadRoot(tags nostr.Tags) *nostr.Tag {
|
|||||||
return tags.GetFirst([]string{"e", ""})
|
return tags.GetFirst([]string{"e", ""})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecated: this was misnamed, use GetImmediateParent instead.
|
||||||
func GetImmediateReply(tags nostr.Tags) *nostr.Tag {
|
func GetImmediateReply(tags nostr.Tags) *nostr.Tag {
|
||||||
|
return GetImmediateParent(tags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetImmediateParent(tags nostr.Tags) *nostr.Tag {
|
||||||
var root *nostr.Tag
|
var root *nostr.Tag
|
||||||
var lastE *nostr.Tag
|
var lastE *nostr.Tag
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user