]> Untitled Git - lemmy.git/commitdiff
Fix bug in whitelist implementation
authorFelix <me@nutomic.com>
Sat, 18 Apr 2020 15:17:25 +0000 (17:17 +0200)
committerFelix <me@nutomic.com>
Sat, 18 Apr 2020 15:17:25 +0000 (17:17 +0200)
server/src/apub/activities.rs

index d49008064916bd5d096d1a2507bce0b1f626a86a..73b7293d7647ad88799f9cff6e6c4678ad6123be 100644 (file)
@@ -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;
     }