]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/source/activity.rs
Use URL type in most outstanding struct fields (#1468)
[lemmy.git] / crates / db_schema / src / source / activity.rs
index cf81ab8c8e2441977f5e7e6ce5f6610088eb8e4f..7b7f4aba391ef44fe39fa24b9855475e3236a077 100644 (file)
@@ -1,4 +1,4 @@
-use crate::schema::activity;
+use crate::{schema::activity, DbUrl};
 use serde_json::Value;
 use std::fmt::Debug;
 
@@ -10,7 +10,7 @@ pub struct Activity {
   pub local: bool,
   pub published: chrono::NaiveDateTime,
   pub updated: Option<chrono::NaiveDateTime>,
-  pub ap_id: Option<String>,
+  pub ap_id: Option<DbUrl>,
   pub sensitive: Option<bool>,
 }
 
@@ -20,6 +20,6 @@ pub struct ActivityForm {
   pub data: Value,
   pub local: bool,
   pub updated: Option<chrono::NaiveDateTime>,
-  pub ap_id: String,
+  pub ap_id: DbUrl,
   pub sensitive: bool,
 }