a big bundle of conversions and other changes.

This commit is contained in:
fiatjaf
2025-04-15 17:13:57 -03:00
parent f493293be2
commit 2b5b646a62
92 changed files with 852 additions and 2136 deletions
+2 -6
View File
@@ -27,7 +27,7 @@ func (ef Filter) String() string {
return string(j)
}
func (ef Filter) Matches(event *Event) bool {
func (ef Filter) Matches(event Event) bool {
if !ef.MatchesIgnoringTimestampConstraints(event) {
return false
}
@@ -43,11 +43,7 @@ func (ef Filter) Matches(event *Event) bool {
return true
}
func (ef Filter) MatchesIgnoringTimestampConstraints(event *Event) bool {
if event == nil {
return false
}
func (ef Filter) MatchesIgnoringTimestampConstraints(event Event) bool {
if ef.IDs != nil && !slices.Contains(ef.IDs, event.ID) {
return false
}