From 6238bdf94e03e3b5998269c6b750a63ab3543951 Mon Sep 17 00:00:00 2001 From: blek Date: Sat, 21 Oct 2023 12:10:14 +1000 Subject: [PATCH] remove instance_url as it is not needed --- filed/config/filed.toml.example | 4 ---- filed/src/config/types.rs | 8 -------- 2 files changed, 12 deletions(-) diff --git a/filed/config/filed.toml.example b/filed/config/filed.toml.example index c23a7a1..b7658fc 100644 --- a/filed/config/filed.toml.example +++ b/filed/config/filed.toml.example @@ -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="" \ No newline at end of file diff --git a/filed/src/config/types.rs b/filed/src/config/types.rs index 5e767c8..6f60a1a 100644 --- a/filed/src/config/types.rs +++ b/filed/src/config/types.rs @@ -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, } 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(()) } }