]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/fetcher/user.rs
Use Url type for ap_id fields in database (fixes #1364)
[lemmy.git] / crates / apub / src / fetcher / user.rs
index 8442519f7b29c0a4e19d1fd29e5393652c98eca1..21cdfb3489913dde2d286f325c732a6cc24657dc 100644 (file)
@@ -24,7 +24,7 @@ pub(crate) async fn get_or_fetch_and_upsert_user(
 ) -> Result<User_, LemmyError> {
   let apub_id_owned = apub_id.to_owned();
   let user = blocking(context.pool(), move |conn| {
-    User_::read_from_apub_id(conn, apub_id_owned.as_ref())
+    User_::read_from_apub_id(conn, &apub_id_owned.into())
   })
   .await?;