remove instance_url as it is not needed
This commit is contained in:
parent
f112f0bd43
commit
6238bdf94e
|
@ -53,7 +53,3 @@ instance_motto="A minute file sharing service"
|
|||
# Instance emoji.
|
||||
# Used as the icon where icon images are not available
|
||||
instance_emoji="🌠"
|
||||
|
||||
# URL of the instance.
|
||||
# You must set this to a valid URL
|
||||
instance_url=""
|
|
@ -62,10 +62,6 @@ pub struct Branding {
|
|||
/// 🌠 blek! File
|
||||
#[serde(default)]
|
||||
pub instance_emoji: char,
|
||||
|
||||
/// Instance URL (not the bind URL). Must be Some(...)
|
||||
#[serde(default)]
|
||||
pub instance_url: Option<String>,
|
||||
}
|
||||
|
||||
impl Default for Branding {
|
||||
|
@ -74,7 +70,6 @@ impl Default for Branding {
|
|||
instance_name: "blek! File".into(),
|
||||
instance_motto: "A minute file sharing".into(),
|
||||
instance_emoji: '🌠',
|
||||
instance_url: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -87,9 +82,6 @@ impl FilesPolicy {
|
|||
|
||||
impl Branding {
|
||||
fn validate(self: &Self) -> Result<(), String> {
|
||||
if self.instance_url.is_none() {
|
||||
return Err("Instance url must not be empty!".into());
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue