From e1d1e3d470498ac3fe286e421d5361a0aac49adf Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 30 May 2024 02:13:07 +0200 Subject: [PATCH] fix: oops --- src/model/object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/object.rs b/src/model/object.rs index a3c6d621..880ed128 100644 --- a/src/model/object.rs +++ b/src/model/object.rs @@ -155,7 +155,7 @@ impl ActiveModel { content: sea_orm::ActiveValue::Set(object.content().map(|x| x.to_string())), context: sea_orm::ActiveValue::Set(object.context().id()), in_reply_to: sea_orm::ActiveValue::Set(object.in_reply_to().id()), - published: sea_orm::ActiveValue::Set(object.published().ok_or_else(chrono::Utc::now)?), + published: sea_orm::ActiveValue::Set(object.published().unwrap_or_else(chrono::Utc::now)), updated: sea_orm::ActiveValue::Set(object.updated().unwrap_or_else(chrono::Utc::now)), url: sea_orm::ActiveValue::Set(object.url().id()), replies: sea_orm::ActiveValue::Set(object.replies().get()