]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/fetcher/community.rs
Use Url type for ap_id fields in database (fixes #1364)
[lemmy.git] / crates / apub / src / fetcher / community.rs
index 2a2564122031e071596894e0bf329d2d62e5913e..0249dee1ebecbe931c45de6a958b2c62c50b40ad 100644 (file)
@@ -40,7 +40,7 @@ pub(crate) async fn get_or_fetch_and_upsert_community(
 ) -> Result<Community, LemmyError> {
   let apub_id_owned = apub_id.to_owned();
   let community = blocking(context.pool(), move |conn| {
-    Community::read_from_apub_id(conn, apub_id_owned.as_str())
+    Community::read_from_apub_id(conn, &apub_id_owned.into())
   })
   .await?;