From 42ba69a713eafa2a5640d3313f6057f1993e7d57 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Sun, 3 Dec 2023 12:56:27 -0600 Subject: Change to allow list --- bin/main.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/main.ml b/bin/main.ml index 579b334..ab5548a 100644 --- a/bin/main.ml +++ b/bin/main.ml @@ -59,7 +59,7 @@ let actor = } |} -let actor_whitelist = +let actor_allowlist = [ "https://fosstodon.org/users/marcc"; "https://universeodon.com/users/icecreambook"; @@ -127,7 +127,7 @@ let () = message_object |> Post.post_of_mastodon_post (User.name actor) in let in_whitelist = - List.mem (Post.mastodon_actor message_object) actor_whitelist + List.mem (Post.mastodon_actor message_object) actor_allowlist in match (valid_request, disable_auth, in_whitelist) with | Error e, "false", _ -> -- cgit v1.2.3