about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-01 16:57:09 +0200
committerRory& <root@rory.gay>2025-05-01 16:57:09 +0200
commit940167530466e498914f25f7733ffa6a770f27c1 (patch)
tree63f4a4acf1d2aeb21f69383cffd3f802af855a3c
parentSimplify invite store, use multiple threads for evaluating policies to scale ... (diff)
downloadMatrixAntiDmSpam-940167530466e498914f25f7733ffa6a770f27c1.tar.xz
Update LibMatrix, fix readme
m---------LibMatrix0
-rw-r--r--MatrixAntiDmSpam/AntiDmSpamConfiguration.cs8
-rw-r--r--README.MD5
3 files changed, 7 insertions, 6 deletions
diff --git a/LibMatrix b/LibMatrix
-Subproject ff13e64dca922550eb6a955de0690d841590a9b
+Subproject 1c30aec46b495f1da87c3a6adbda3e19e014b55
diff --git a/MatrixAntiDmSpam/AntiDmSpamConfiguration.cs b/MatrixAntiDmSpam/AntiDmSpamConfiguration.cs

index 0d90b3e..fc99f57 100644 --- a/MatrixAntiDmSpam/AntiDmSpamConfiguration.cs +++ b/MatrixAntiDmSpam/AntiDmSpamConfiguration.cs
@@ -5,11 +5,11 @@ public class AntiDmSpamConfiguration { public string? LogRoom { get; set; } public bool LogInviteDataAsFile { get; set; } - public List<PolicyRoomReference> PolicyLists { get; set; } + public required List<PolicyRoomReference> PolicyLists { get; set; } public class PolicyRoomReference { - public string Name { get; set; } - public string RoomId { get; set; } - public List<string> Vias { get; set; } + public required string Name { get; set; } + public required string RoomId { get; set; } + public required List<string> Vias { get; set; } } } \ No newline at end of file diff --git a/README.MD b/README.MD
index 9c93f45..d25c99a 100644 --- a/README.MD +++ b/README.MD
@@ -1,4 +1,4 @@ -# <img src="https://cgit.rory.gay/matrix/tools/MatrixAntiDmSpam.git/plain/MatrixAntiDmSpam/MatrixAntiDmSpam/MatrixAntiDmSpam.png"/> MatrixAntiDmSpam +# <img src="https://cgit.rory.gay/matrix/tools/MatrixAntiDmSpam.git/plain/MatrixAntiDmSpam/MatrixAntiDmSpam.png"/> MatrixAntiDmSpam --- A project to make invite spam more manageable at scale. @@ -20,7 +20,7 @@ cd MatrixAntiDmSpam/MatrixAntiDmSpam dotnet publish -c Release # Install binaries -sudo cp bin/net9.0/Release/publish /opt/MatrixAntiDmSpam +sudo cp bin/Release/net9.0/linux-x64/publish /opt/MatrixAntiDmSpam ``` Next, you want to set up a working directory (`~/.local/share/MatrixAntiDmSpam` works well), and copy your access token into a new file (ie. `nano -L ~/.matrix-access-token`). @@ -36,6 +36,7 @@ Additionally, you want to copy `appsettings.Development.json` into your working </details> Note that `PolicyLists` refers to special rooms known as Policy List rooms, which are commonly used by moderation bots as Mjolnir and Draupnir. +The default value (Community Moderation Effort) is a policy list that is used by a fairly large number of communities, and is a good starting point. Additionally, Element Web supports these for hiding messages via a labs flag. Also note that these may break certain clients, such as FluffyChat ([#814](https://github.com/krille-chan/fluffychat/issues/814), [#858](https://github.com/krille-chan/fluffychat/issues/858), [#905](https://github.com/krille-chan/fluffychat/issues/905)).