diff --git a/upub/core/src/config.rs b/upub/core/src/config.rs index a7ca21b..55f5321 100644 --- a/upub/core/src/config.rs +++ b/upub/core/src/config.rs @@ -151,8 +151,8 @@ pub struct FileStorageConfig { #[derive(Debug, Clone, serde::Deserialize, serde::Serialize, serde_default::DefaultFromSerde)] pub struct RejectConfig { #[serde(default)] - /// discard everything coming from these instances - pub everything: Vec, + /// discard incoming activities from these instances + pub incoming: Vec, #[serde(default)] /// prevent proxying media coming from these instances diff --git a/upub/routes/src/activitypub/inbox.rs b/upub/routes/src/activitypub/inbox.rs index e5292ce..4253d1f 100644 --- a/upub/routes/src/activitypub/inbox.rs +++ b/upub/routes/src/activitypub/inbox.rs @@ -64,7 +64,7 @@ pub async fn post( } }; - if ctx.cfg().reject.everything.contains(&domain) { + if ctx.cfg().reject.incoming.contains(&domain) { return Err(crate::ApiError::Status(StatusCode::UNAVAILABLE_FOR_LEGAL_REASONS)); }