From: Felix Date: Sat, 18 Apr 2020 15:17:25 +0000 (+0200) Subject: Fix bug in whitelist implementation X-Git-Url: http://these/git/?a=commitdiff_plain;h=a49bd1d42a7b8721dab2f1c872f34d3f690ae74d;p=lemmy.git Fix bug in whitelist implementation --- diff --git a/server/src/apub/activities.rs b/server/src/apub/activities.rs index d4900806..73b7293d 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; }