mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-06 04:25:00 +00:00
Fix bug in whitelist implementation
This commit is contained in:
parent
19fd788e72
commit
cd2d4dee74
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ where
|
||||||
let json = serde_json::to_string(&activity)?;
|
let json = serde_json::to_string(&activity)?;
|
||||||
debug!("Sending activitypub activity {} to {:?}", json, to);
|
debug!("Sending activitypub activity {} to {:?}", json, to);
|
||||||
for t in 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);
|
debug!("Not sending activity to {} (invalid or blacklisted)", t);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue