forked from alemi/upub
fix: add published which must be non null
This commit is contained in:
parent
36aec4f447
commit
c6703a0a1e
1 changed files with 2 additions and 0 deletions
|
@ -164,6 +164,7 @@ pub async fn post(
|
||||||
actor: Set(to.to_string()),
|
actor: Set(to.to_string()),
|
||||||
activity: Set(aid.clone()),
|
activity: Set(aid.clone()),
|
||||||
object: Set(Some(oid.clone())),
|
object: Set(Some(oid.clone())),
|
||||||
|
published: Set(chrono::Utc::now()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
@ -225,6 +226,7 @@ pub async fn post(
|
||||||
actor: Set(to.to_string()),
|
actor: Set(to.to_string()),
|
||||||
activity: Set(aid.clone()),
|
activity: Set(aid.clone()),
|
||||||
object: Set(None),
|
object: Set(None),
|
||||||
|
published: Set(chrono::Utc::now()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
Loading…
Reference in a new issue