Commit Graph

42 Commits

Author SHA1 Message Date
gnuxie f5c2ba2ccb v1.87.0 2024-03-24 18:48:44 +00:00
gnuxie 71cb738610 v1.86.2 2024-02-09 18:50:27 +00:00
gnuxie 1aa406d3bd v1.86.1 2024-02-01 17:23:36 +00:00
gnuxie 4d476b5b15 v1.86.0 2024-01-15 23:40:47 +00:00
gnuxie efe842cc9f v1.85.1 2023-09-12 11:58:14 +01:00
gnuxie fb0199fdc9 v1.85.0 2023-09-07 16:00:02 +01:00
Aminda Suomalainen e4c02b96cd Add pre-commit configuration (#34)
* add .pre-commit-config.yaml

Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>

* .editorconfig: decrease indent size for text

* .pre-commit-config.yaml: remove prettier

Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>

* .editorconfig consistency.

* .pre-commit-config.yaml: restore sample hooks

* .editorconfig: disable indent_size for LICENSE & NOTICE

* pre-commit run --all-files

* tsconfig.json: tabs to spaces

* .pre-commit-config.yaml: update editorconfig-checker to 2.7.2

* .editorconfig: disable indent_size for markdown

* mjolnir-entrypoint.sh: retab

* .editorconfig: also exclude json from indent checking

* test/nginx.conf: retab

* test/integration/commands/redactCommandTest.ts: remove leading space

* retab or remove leading whitespaces for the rest of the files

* src/appservice/datastore.ts remove newlines

* test/integration/commands/roomTest.ts: remove leading space.

---------

Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>
Co-authored-by: gnuxie <Gnuxie@protonmail.com>
2023-08-29 13:38:00 +01:00
gnuxie df432121de v1.84.0 2023-07-04 17:31:46 +01:00
Gnuxie bed8f72686 v1.83.0 2023-05-31 17:44:11 +01:00
gnuxie 3c007083f7 v1.82.0 2023-05-13 03:09:38 +01:00
gnuxie d8ef8a94d9 v1.81.4 2023-03-28 22:01:47 +01:00
gnuxie 7de96bda34 v1.81.3 2023-03-28 20:01:27 +01:00
gnuxie 0f8826f810 v1.81.2 2023-03-28 14:03:00 +01:00
gnuxie 009ece3281 v1.81.1 2023-03-16 20:36:41 +00:00
gnuxie 9ff1bcf3e1 v1.81.0 2023-03-14 12:22:54 +00:00
gnuxie 64e721d690 v1.80.1 2023-02-20 20:05:37 +00:00
gnuxie 5e2a175645 v1.80.0 2023-02-11 20:57:39 +00:00
gnuxie 58ebc39c03 v1.80.0-beta.0 2023-02-08 15:25:13 +00:00
gnuxie 1bc329b5e8 v1.6.1 2022-11-23 10:56:46 +00:00
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