From a49bd1d42a7b8721dab2f1c872f34d3f690ae74d Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 18 Apr 2020 17:17:25 +0200 Subject: [PATCH] Fix bug in whitelist implementation --- server/src/apub/activities.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/apub/activities.rs b/server/src/apub/activities.rs index d49008064..73b7293d7 100644 --- a/server/src/apub/activities.rs +++ b/server/src/apub/activities.rs @@ -39,7 +39,7 @@ where let json = serde_json::to_string(&activity)?; debug!("Sending activitypub activity {} to {:?}", json, to); for t in to { - if is_apub_id_valid(&t) { + if !is_apub_id_valid(&t) { debug!("Not sending activity to {} (invalid or blacklisted)", t); continue; }