remove instance_url as it is not needed

This commit is contained in:
blek 2023-10-21 12:10:14 +10:00
parent f112f0bd43
commit 6238bdf94e
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 0 additions and 12 deletions

View File

@ -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=""

View File

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