Commit Graph

23 Commits

Author SHA1 Message Date
gnuxie
0845636d39 v1.6.0 2022-11-22 10:44:19 +00:00
gnuxie
b48904bc2b v1.5.0 2022-07-07 13:07:27 +01:00
gnuxie
a88fc64a07 v1.4.2 2022-05-06 11:25:49 +01:00
Gnuxie
3d10f998b7
Change antispam Python module verison with mjolnir version. (#264)
The reason we want this is so that people do not forget to change the version number in the synapse module.
The precedent is that the version number has been 0.1.0 since the begging until now.
While this solution does mean that there may be new version of the module where
nothing has actually changed, this is still better than not changing the version at all.
Another version scheme for the module would be inconsistent to
the git repository tags and that has the potential to cause much more confusion
than "blank" version bumps.
If this is a problem, then antispam must be extracted to another repository.

In order to test this, run `yarn version --patch` observe the changes with `git log` and `git diff HEAD~`,
then YOU MUST delete the tag with `git tag --delete vd.d.d` when you are finished.

* more robust
2022-04-12 16:36:35 +01:00
David Robertson
95d394b964
Merge pull request #246 from matrix-org/dmr/fix-check-username-as-spam
Fix block_usernames config option
2022-03-21 11:54:12 +00:00
Gnuxie
814e528eaf
Fix incorrect type deceleration in check_username_for_spam (#250)
Fixes https://github.com/matrix-org/mjolnir/issues/245
2022-03-18 17:20:53 +00:00
Gnuxie
48206a8524
Move message_limit into antispam. (#243)
* Move message_limit into antispam.

https://github.com/matrix-org/message_limit

Not ideal but we've had complaints about keeping them separate
and unfortunately the need for this module is not going to go away.
2022-03-18 11:07:21 +00:00
David Robertson
2c9fc0ccdc
Fix block_usernames config option
Fixes #244.
2022-03-17 16:53:31 +00:00
reivilibre
e49e4d05eb
Use public imports for UserID and run_as_background_process (#175) 2022-02-11 10:13:16 +01:00
David Teller
6cb461fed4
Move glob_to_regex into the source - resolves #173 (#218) 2022-02-09 13:07:23 +01:00
David Teller
9c9bd0e029
Let's port to Synapse module API (#128) 2022-02-09 08:40:33 +01:00
Marco Cirillo
eb8c5e08b4 Update legacy antispam plugin with newer types.
Or it'll just ignore 1.3.1 rules.
2022-02-07 10:57:38 +01:00
Patrick Cloke
70f353fbba Add a flag for disabling checking of usernames for spam. 2020-02-13 13:08:09 -05:00
Patrick Cloke
92c6f3f36f Switch to using the user profile. 2020-02-13 10:31:00 -05:00
Patrick Cloke
a6d483191e Update based on review comments from Synapse PR. 2020-02-12 12:57:34 -05:00
Patrick Cloke
95bb5a7e83 Add an API to filter user directory searches by MXID or display name. 2020-02-11 10:10:27 -05:00
Randshot
d1afb9811d
Add room rule check to invites
Signed-off-by: Randshot <randshot@norealm.xyz>
2020-02-01 10:09:54 +01:00
Travis Ralston
a7b38daae5 Do python right 2020-01-23 11:48:24 -07:00
Travis Ralston
9462c25bbf Use background processes, not log contexts 2019-11-13 15:05:16 -07:00
Travis Ralston
83fffd322e Wrap ban list build in a logging context 2019-11-13 14:31:31 -07:00
Travis Ralston
40ad7f0df3 Update for new Spam Checker API 2019-10-28 14:55:32 -06:00
Travis Ralston
187a76a3e8 Add logic for Mjolnir antispam module 2019-10-25 20:59:19 -06:00
Travis Ralston
cc0ab174b3 Base structure for an antispam module 2019-10-25 13:32:05 -06:00