From b2ff689f286be14372a20d965a47903c24ea4a44 Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 29 Dec 2024 04:44:50 +0100 Subject: [PATCH] chore: renamed config field --- upub/core/src/config.rs | 4 ++-- upub/routes/src/activitypub/inbox.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)); }