From c6703a0a1eb79d44c9de4d5cfb549724c5b0508e Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 26 Mar 2024 02:07:46 +0100 Subject: [PATCH] fix: add published which must be non null --- src/activitypub/user/outbox.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/activitypub/user/outbox.rs b/src/activitypub/user/outbox.rs index 0326d294..75987e86 100644 --- a/src/activitypub/user/outbox.rs +++ b/src/activitypub/user/outbox.rs @@ -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();