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)]
|
||||
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
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue