diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-17 17:11:37 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-17 17:11:37 +0200 |
commit | 0ad13628bb8ef899927b7b42b5357fe616ce057c (patch) | |
tree | 8a04032802bdc13d0b9006e024a54b888a2562dc /ExampleBots/MediaModeratorPoC/Commands/BanMediaCommand.cs | |
parent | Handle floats etc in requests (diff) | |
download | LibMatrix-0ad13628bb8ef899927b7b42b5357fe616ce057c.tar.xz |
Add updating of profiles and fetching room profiles
Diffstat (limited to 'ExampleBots/MediaModeratorPoC/Commands/BanMediaCommand.cs')
-rw-r--r-- | ExampleBots/MediaModeratorPoC/Commands/BanMediaCommand.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ExampleBots/MediaModeratorPoC/Commands/BanMediaCommand.cs b/ExampleBots/MediaModeratorPoC/Commands/BanMediaCommand.cs index 69c0583..5dfa706 100644 --- a/ExampleBots/MediaModeratorPoC/Commands/BanMediaCommand.cs +++ b/ExampleBots/MediaModeratorPoC/Commands/BanMediaCommand.cs @@ -1,3 +1,4 @@ +using System.Buffers.Text; using System.Security.Cryptography; using ArcaneLibs.Extensions; using LibMatrix; @@ -87,7 +88,7 @@ public class BanMediaCommand(IServiceProvider services, HomeserverProviderServic MediaPolicyEventContent policy; await policyRoom.SendStateEventAsync("gay.rory.media_moderator_poc.rule.media", Guid.NewGuid().ToString(), policy = new MediaPolicyEventContent { - Entity = uriHash, + // Entity = uriHash, FileHash = fileHash, Reason = string.Join(' ', ctx.Args[1..]), Recommendation = recommendation, |