1
0
Fork 0
forked from alemi/upub

fix: add published which must be non null

This commit is contained in:
əlemi 2024-03-26 02:07:46 +01:00
parent 36aec4f447
commit c6703a0a1e
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -164,6 +164,7 @@ pub async fn post(
actor: Set(to.to_string()),
activity: Set(aid.clone()),
object: Set(Some(oid.clone())),
published: Set(chrono::Utc::now()),
..Default::default()
})
.collect();
@ -225,6 +226,7 @@ pub async fn post(
actor: Set(to.to_string()),
activity: Set(aid.clone()),
object: Set(None),
published: Set(chrono::Utc::now()),
..Default::default()
})
.collect();