alias TagMap to map[string]StringList.

This commit is contained in:
fiatjaf
2022-02-09 20:25:20 -03:00
parent 9721ffa851
commit 795863d2dd
3 changed files with 10 additions and 8 deletions
+3 -1
View File
@@ -12,9 +12,11 @@ type Filter struct {
Authors StringList
Since *time.Time
Until *time.Time
Tags map[string]StringList
Tags TagMap
}
type TagMap map[string]StringList
func (eff Filters) Match(event *Event) bool {
for _, filter := range eff {
if filter.Matches(event) {