Commit Graph

59 Commits

Author SHA1 Message Date
gnuxie bcfdfdfd03 v2.1.0 2025-02-02 11:06:57 +00:00
gnuxie 8764a17430 v2.0.2 2025-01-24 16:27:02 +00:00
gnuxie 2ee9f35876 v2.0.1 2025-01-18 01:00:42 +00:00
gnuxie a16fb7b2c0 v2.0.0 2025-01-16 19:09:07 +00:00
gnuxie b1a22dbffa v2.0.0-beta.11 2025-01-16 15:14:49 +00:00
gnuxie a4603181a2 v2.0.0-beta.10 2025-01-09 18:18:03 +00:00
gnuxie 56a36de654 v2.0.0-beta.9 2024-12-14 15:24:00 +00:00
gnuxie e36fefb4ce v2.0.0-beta.8 2024-10-22 19:33:56 +01:00
gnuxie cb88aa52a1 v2.0.0-beta.7 2024-10-02 19:43:32 +01:00
gnuxie d3fe508db3 v2.0.0-beta.6 2024-09-11 18:08:23 +01:00
gnuxie 272d1094ec v2.0.0-beta.5 2024-08-26 12:10:33 +01:00
Gnuxie 337a6a3b76 Add reuse.software (#486)
We have a lot of verbose headers, and i think now is the best opportunity we have to become reuse compliant given that we just did two other similar maintenance changes (prettier, typescirpt5 & eslint9 & typescript-eslint).

* synapse_antispam resuse headers.

* delete old unused tslint.json.

* Add REUSE to pre-commit config.

* reuse info for config directory.
2024-07-25 10:58:40 +01:00
gnuxie 4c2ea7f155 v2.0.0-beta.4 2024-05-29 12:35:18 +01:00
gnuxie 771edf387e v2.0.0-beta.3 2024-05-06 17:48:16 +01:00
gnuxie a9effe2998 v2.0.0-beta.2 2024-04-22 15:58:50 +01:00
gnuxie 49c5ada4a8 v2.0.0-beta.1 2024-04-19 11:25:13 +01:00
gnuxie 20b540526e v2.0.0-beta.0 2024-04-16 13:10:51 +01:00
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