pool's .FetchManyReplaceable() and amends to previous commit.

This commit is contained in:
fiatjaf
2025-03-12 00:46:43 -03:00
parent 441f94563f
commit cc23d81e80
6 changed files with 142 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ type Tags []Tag
// GetD gets the first "d" tag (for parameterized replaceable events) value or ""
func (tags Tags) GetD() string {
for _, v := range tags {
if v.StartsWith([]string{"d", ""}) {
if len(v) >= 2 && v[0] == "d" {
return v[1]
}
}