chore: renamed config field
This commit is contained in:
parent
d2980e1100
commit
b2ff689f28
2 changed files with 3 additions and 3 deletions
|
@ -151,8 +151,8 @@ pub struct FileStorageConfig {
|
||||||
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize, serde_default::DefaultFromSerde)]
|
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize, serde_default::DefaultFromSerde)]
|
||||||
pub struct RejectConfig {
|
pub struct RejectConfig {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
/// discard everything coming from these instances
|
/// discard incoming activities from these instances
|
||||||
pub everything: Vec<String>,
|
pub incoming: Vec<String>,
|
||||||
|
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
/// prevent proxying media coming from these instances
|
/// prevent proxying media coming from these instances
|
||||||
|
|
|
@ -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));
|
return Err(crate::ApiError::Status(StatusCode::UNAVAILABLE_FOR_LEGAL_REASONS));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue