/// Default anonymous name pub const ANON_NAME: &'static str = "ๅ็„กใ—"; /// Max length of `name` and `email` feilds in posts. pub const POST_ID_MAX_LEN: usize = 32; /// The salt to use for tripcode hashes pub const TRIPCODE_SALT: khash::salt::Salt = khash::salt::Salt::internal(); /// The tripcode algorithm to use pub const TRIPCODE_ALGO: khash::ctx::Algorithm = khash::ctx::Algorithm::Sha256; /// What timezone to represent data in. pub type Timezone = chrono::offset::Utc; /// Default post expiry duration (120 days) /// /// # Notes /// This is specified as a std `Duration`, the chrono `Duration` calculated from the post's offset must be converted into this type to be used for anything. /// This conversion can fail. /// If it does fail, then the post should just be treated as expired. pub const POST_EXPIRE: tokio::time::Duration = tokio::time::Duration::from_secs( 60 // Minute * 60 // Hour * 24 // Day * 120 );