Commit Graph

254 Commits

Author SHA1 Message Date
gnuxie
7e44cf99c1 Move test harness files to new structure 2021-09-24 18:25:27 +01:00
Gnuxie
002e4ee749 Create docker-compose for testing purposes 2021-09-24 18:25:27 +01:00
Gnuxie
c262bc26db
Merge pull request #108 from chirayudesai/protection-media
Add a new protection, MessageIsMedia
2021-09-24 14:59:11 +01:00
Chirayu Desai
69ace9cfa5 Add a new protection, MessageIsMedia
* Simply redacts any media sent to the room, by anyone
* Meant to serve as a temporary measure to prevent image spam,
  in conjunction with FirstMessageIsImage
2021-09-24 16:57:16 +05:30
gnuxie
7ea05629e3 v1.1.20 2021-09-17 12:10:48 +01:00
Gnuxie
7b7130b39f
Merge pull request #132 from matrix-org/gnuxie/remove-messages-sync
Use `rooms/initialSync` instead of `sync` to fetch room history. See https://github.com/matrix-org/synapse/issues/10842.
2021-09-17 12:08:05 +01:00
gnuxie
6edf503a9c Use rooms/initialSync instead of sync to fetch room history.
See https://github.com/matrix-org/synapse/issues/10842.
For the time being this seems to be the only way to avoid requests
that take several minutes for synapse to complete and timeout.
2021-09-17 12:02:14 +01:00
Gnuxie
4ca18b1bfc
Merge pull request #130 from matrix-org/gnuxie/change-ban-redact-order
Gnuxie/change ban redact order
2021-09-16 17:40:53 +01:00
gnuxie
5acc38c8b5 EventRedactionQueue documentation improvements from review 2021-09-16 17:10:59 +01:00
gnuxie
ad199cc7d7 Use a Map for queueing redactions by roomId. 2021-09-15 12:18:55 +01:00
gnuxie
2889599eb2 Rename AutomaticRedactionQueue to UnlistedUserRedactionQueue.
This seems to be a more descriptive name and it also doesn't clash
with the new redaction queue.
2021-09-14 14:45:07 +01:00
gnuxie
c949d26582 When checking a member change, process redactions for that room. 2021-09-14 14:45:07 +01:00
gnuxie
c5b5026d4d WIP: Redact events after all bans have been applied. 2021-09-14 14:13:24 +01:00
David Teller
60741214f5
Merge pull request #127 from matrix-org/revert-122-patch-1
Revert "Update README.md"
2021-09-01 10:11:26 +02:00
David Teller
6ebb1a62f0
Revert "Update README.md" 2021-09-01 09:57:05 +02:00
David Teller
e45791f66e
Merge pull request #102 from jojosch/catch-errors
catch errors and set non-zero exit code
2021-08-31 11:52:47 +02:00
David Teller
de4416d4de
Merge pull request #122 from cremesk/patch-1
Update README.md to reflect change in Synapse module system
2021-08-31 11:51:44 +02:00
Travis Ralston
b6b427a458 v0.1.19 2021-08-17 09:27:17 -06:00
Travis Ralston
7ca0b2d39b Clean up lockfile 2021-08-17 09:26:47 -06:00
Travis Ralston
37031764ac
Merge pull request #117 from matrix-org/yoric/delete-rooms-api
Replace shutdown_room API with DELETE /_synapse/admin/v1/rooms/<room_…
2021-08-17 09:23:55 -06:00
David Teller
dd6c06eae5 Fix: Let's default to Synapse's default message when deleting a room without a message 2021-08-17 17:21:17 +02:00
Travis Ralston
f09fd5d507
Merge pull request #123 from matrix-org/travis/voice-prot
Add a voice message protection to easily redact unwanted messages
2021-08-17 08:46:34 -06:00
David Teller
9b9cfea92b
Merge pull request #119 from matrix-org/dependabot/npm_and_yarn/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7
2021-08-17 15:55:35 +02:00
David Teller
b60f503e2e FIXUP 2021-08-17 12:56:25 +02:00
David Teller
62b30b19d9 Replace shutdown_room API with DELETE /_synapse/admin/v1/rooms/<room_id> - Resolves #76, closes #96
As per https://github.com/matrix-org/synapse/issues/9052, shutdown_room is going away, to be replaced with DELETE /_synapse/admin/v1/rooms/<room_id>.
2021-08-17 12:54:24 +02:00
David Teller
bc222e2345
Merge pull request #116 from matrix-org/yoric/lint
Increasing linting level
2021-08-17 10:28:07 +02:00
Travis Ralston
4c6511ba3d Definitely didn't copy/paste 2021-08-16 20:35:39 -06:00
Travis Ralston
453784d7ef Add a voice message protection to easily redact unwanted messages 2021-08-16 20:32:00 -06:00
~creme
48584c4771
Update README.md
change deprecated "spam_checker" to "modules".

note:  
https://matrix-org.github.io/synapse/develop/spam_checker.html  
https://matrix-org.github.io/synapse/develop/modules.html
2021-08-15 10:50:02 +02:00
dependabot[bot]
4401cd9637
Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 12:33:46 +00:00
David Teller
46d099e8e0 Lint: Enabling 'noUnusedLocals' 2021-07-22 08:47:41 +02:00
David Teller
2e22154870 Lint: Enabling 'strictNullChecks' 2021-07-22 08:40:29 +02:00
David Teller
2a77509f9e Lint: Enabling 'noImplicitReturns' 2021-07-22 08:24:12 +02:00
Travis Ralston
43da763bb2 0.1.18 2021-07-01 15:12:51 -06:00
Travis Ralston
ff4cbc018f Update matrix-bot-sdk and use request cleaning function 2021-07-01 15:11:27 -06:00
Travis Ralston
d7bacad85c Update packages 2021-07-01 13:45:28 -06:00
David Teller
e9d4fa289d
Merge pull request #106 from neilmiddleton/nm/jun21-dependency-update
Dependency updates
2021-07-01 16:38:19 +02:00
Neil Middleton
bfc2593c4b
Merge pull request #1 from neilmiddleton/dependabot/npm_and_yarn/y18n-4.0.3
Bump y18n from 4.0.0 to 4.0.3
2021-06-24 16:41:02 +01:00
Neil Middleton
793c9304e0
Merge branch 'nm/jun21-dependency-update' into dependabot/npm_and_yarn/y18n-4.0.3 2021-06-24 16:40:50 +01:00
Neil Middleton
c85b922343
Merge pull request #2 from neilmiddleton/dependabot/npm_and_yarn/postcss-7.0.36
Bump postcss from 7.0.18 to 7.0.36
2021-06-24 16:40:12 +01:00
Neil Middleton
265045a835
Merge pull request #3 from neilmiddleton/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.19 to 4.17.21
2021-06-24 16:39:51 +01:00
Neil Middleton
04a40e0df5
Merge pull request #4 from neilmiddleton/dependabot/npm_and_yarn/glob-parent-5.1.2
Bump glob-parent from 5.1.1 to 5.1.2
2021-06-24 16:39:29 +01:00
dependabot[bot]
0dba1ea709
Bump glob-parent from 5.1.1 to 5.1.2
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-24 15:36:43 +00:00
dependabot[bot]
104ae039a5
Bump postcss from 7.0.18 to 7.0.36
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.18 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.18...7.0.36)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-24 15:36:40 +00:00
dependabot[bot]
8f4fd808a7
Bump lodash from 4.17.19 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

---
updated-dependencies:
- dependency-name: lodash
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-24 15:36:40 +00:00
dependabot[bot]
d5f3003c71
Bump y18n from 4.0.0 to 4.0.3
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.3.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/compare/v4.0.0...y18n-v4.0.3)

---
updated-dependencies:
- dependency-name: y18n
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-24 15:36:38 +00:00
Johannes Schleifenbaum
662b06df8e
catch errors and set non-zero exit code
Signed-off-by: Johannes Schleifenbaum <johannes@js-webcoding.de>
2021-06-14 19:03:35 +02:00
Travis Ralston
150be16cb1
Merge pull request #101 from neilmiddleton/nm-issue-83
Make `!mjolnir` not case sensitive
2021-06-14 08:37:19 -06:00
Neil Middleton
1c5c4bdc15
Remove errant log 2021-06-14 14:51:18 +01:00
Neil Middleton
531fd1379c Make !mjolnir not case sensitive 2021-06-14 14:43:50 +01:00