1
0
Fork 0
forked from alemi/upub

fix: dont overwrite context when updating

This commit is contained in:
əlemi 2024-06-24 03:19:30 +02:00
parent ab1ca489be
commit 38e45c11d4
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -304,6 +304,7 @@ pub async fn update(ctx: &crate::Context, activity: impl apb::Activity, tx: &Dat
.await? .await?
.ok_or(ProcessorError::Incomplete)?; .ok_or(ProcessorError::Incomplete)?;
let mut object_model = crate::AP::object_q(&object_node, Some(internal_oid))?; 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.updated = Set(chrono::Utc::now());
object_model.update(tx).await?; object_model.update(tx).await?;
}, },