]> Untitled Git - lemmy.git/blobdiff - crates/utils/src/lib.rs
Moving settings and secrets to context.
[lemmy.git] / crates / utils / src / lib.rs
index f1093fd585f2f032607ee74d01e44c600f105a14..ad539f8b006c32d78d9955270a8c8ed5ee369c03 100644 (file)
@@ -17,9 +17,8 @@ mod test;
 pub mod utils;
 pub mod version;
 
-use crate::settings::structs::Settings;
 use http::StatusCode;
-use regex::Regex;
+
 use std::fmt;
 use thiserror::Error;
 
@@ -88,16 +87,3 @@ impl actix_web::error::ResponseError for LemmyError {
     }
   }
 }
-
-lazy_static! {
-  pub static ref WEBFINGER_COMMUNITY_REGEX: Regex = Regex::new(&format!(
-    "^group:([a-z0-9_]{{3,}})@{}$",
-    Settings::get().hostname
-  ))
-  .expect("compile webfinger regex");
-  pub static ref WEBFINGER_USERNAME_REGEX: Regex = Regex::new(&format!(
-    "^acct:([a-z0-9_]{{3,}})@{}$",
-    Settings::get().hostname
-  ))
-  .expect("compile webfinger regex");
-}