From 42c9c195095656774f780f06c6268ac4ee942706 Mon Sep 17 00:00:00 2001 From: aprilthepink Date: Sat, 3 Aug 2024 08:56:05 +0200 Subject: [PATCH] awa? --- src/lysand/http.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lysand/http.rs b/src/lysand/http.rs index 27f892e..924c6cc 100644 --- a/src/lysand/http.rs +++ b/src/lysand/http.rs @@ -231,7 +231,7 @@ pub async fn lysand_url_to_user_and_model( let data = FEDERATION_CONFIG.get().unwrap(); let opt_model = prelude::User::find() - .filter(user::Column::Url.eq(url.as_str())) + .filter(user::Column::Url.eq(url.to_string())) .one(db) .await?; let target; diff --git a/src/main.rs b/src/main.rs index 43eefa8..8340aaa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -177,7 +177,7 @@ async fn main() -> actix_web::Result<(), anyhow::Error> { dotenv().ok(); env_logger::init_from_env(env_logger::Env::new().default_filter_or("info")); - let uuid = Uuid::now_v7(); + let uuid = Uuid::parse_str("019116ea-3bf6-7ba3-b437-2cd7aaf40f80")?; let ap_id = Url::parse(&format!( "https://{}/apbridge/user/{}",