From 38e45c11d40155fb5265c5b5003380b66b71bcbc Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 24 Jun 2024 03:19:30 +0200 Subject: [PATCH] fix: dont overwrite context when updating --- upub/core/src/traits/process.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/upub/core/src/traits/process.rs b/upub/core/src/traits/process.rs index ff92f85b..3d80573f 100644 --- a/upub/core/src/traits/process.rs +++ b/upub/core/src/traits/process.rs @@ -304,6 +304,7 @@ pub async fn update(ctx: &crate::Context, activity: impl apb::Activity, tx: &Dat .await? .ok_or(ProcessorError::Incomplete)?; let mut object_model = crate::AP::object_q(&object_node, Some(internal_oid))?; + object_model.context = NotSet; // TODO dont overwrite context when updating!! object_model.updated = Set(chrono::Utc::now()); object_model.update(tx).await?; },