automod: tweaks/fixes to spam detection

This commit is contained in:
Dragory 2020-07-30 22:47:33 +03:00
parent 4931c95872
commit 80fb9d7b6b
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
7 changed files with 18 additions and 11 deletions

View file

@ -16,7 +16,8 @@ export function getMatchingRecentActions(
action.type === type &&
(!identifier || action.identifier === identifier) &&
action.context.timestamp >= since &&
action.context.timestamp <= to
action.context.timestamp <= to &&
!action.context.actioned
);
});
}