From 84882dd5bdabdb7c2c59ff65552aebd22ef25af4 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 22 Mar 2024 17:59:46 +0100 Subject: [PATCH] fix: published is optional on activities --- src/model/activity.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/activity.rs b/src/model/activity.rs index 1e8b8054..b4824bb2 100644 --- a/src/model/activity.rs +++ b/src/model/activity.rs @@ -138,7 +138,7 @@ impl Model { actor: activity.actor().id().ok_or(super::FieldError("actor"))?.to_string(), object: activity.object().id().map(|x| x.to_string()), target: activity.target().id().map(|x| x.to_string()), - published: activity.published().ok_or(super::FieldError("published"))?, + published: activity.published().unwrap_or(chrono::Utc::now()), to: activity.to().into(), bto: activity.bto().into(), cc: activity.cc().into(),