diff --git a/server/lemmy_utils/src/settings.rs b/server/lemmy_utils/src/settings.rs index 8b4864646..102914779 100644 --- a/server/lemmy_utils/src/settings.rs +++ b/server/lemmy_utils/src/settings.rs @@ -120,11 +120,11 @@ impl Settings { } pub fn read_config_file() -> Result { - fs::read_to_string(Self::get_config_defaults_location()) + fs::read_to_string(CONFIG_FILE) } pub fn save_config_file(data: &str) -> Result { - fs::write(Self::get_config_defaults_location(), data)?; + fs::write(CONFIG_FILE, data)?; // Reload the new settings // From https://stackoverflow.com/questions/29654927/how-do-i-assign-a-string-to-a-mutable-static-variable/47181804#47181804