chore: renamed config field

This commit is contained in:
əlemi 2024-12-29 04:44:50 +01:00
parent d2980e1100
commit b2ff689f28
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 3 additions and 3 deletions

View file

@ -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<String>,
/// discard incoming activities from these instances
pub incoming: Vec<String>,
#[serde(default)]
/// prevent proxying media coming from these instances

View file

@ -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));
}