remove .Author field from filter.

This commit is contained in:
fiatjaf
2021-12-16 15:31:16 -03:00
parent 009251dd6e
commit 7dfc354eec

View File

@@ -4,7 +4,6 @@ import "github.com/fiatjaf/go-nostr/event"
type EventFilter struct {
ID string `json:"id,omitempty"`
Author string `json:"author,omitempty"`
Kind *int `json:"kind,omitempty"`
Authors []string `json:"authors,omitempty"`
TagEvent string `json:"#e,omitempty"`
@@ -21,10 +20,6 @@ func (ef EventFilter) Matches(event *event.Event) bool {
return false
}
if ef.Author != "" && ef.Author != event.PubKey {
return false
}
if ef.Authors != nil {
found := false
for _, pubkey := range ef.Authors {