aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Coquand <marcc@fastmail.fr>2023-12-03 12:56:27 -0600
committerMarc Coquand <marcc@fastmail.fr>2023-12-03 12:56:27 -0600
commit42ba69a713eafa2a5640d3313f6057f1993e7d57 (patch)
tree107b146d289446d40d1bcef5cb231854fa823a97
parent76fb556b6be77ea4839313421a2ef3219d576d78 (diff)
downloadwormhole-42ba69a713eafa2a5640d3313f6057f1993e7d57.tar.gz
wormhole-42ba69a713eafa2a5640d3313f6057f1993e7d57.tar.bz2
wormhole-42ba69a713eafa2a5640d3313f6057f1993e7d57.zip
Change to allow list
Diffstat (limited to '')
-rw-r--r--bin/main.ml4
1 files changed, 2 insertions, 2 deletions
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", _ ->