From 32dd5163bbbba36a23d0a1dc97f1844a4cbf40e8 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 20 May 2024 21:21:13 +0200 Subject: [PATCH] fix: don't create a new context if missing, use id --- src/server/normalizer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/normalizer.rs b/src/server/normalizer.rs index 1c23840..f9e55a7 100644 --- a/src/server/normalizer.rs +++ b/src/server/normalizer.rs @@ -38,7 +38,7 @@ impl Normalizer for super::Context { (Some(reply_id), None) => // get context from replied object object_model.context = self.fetch_object(reply_id).await?.context, (None, None) => // generate a new context - object_model.context = Some(crate::url!(self, "/context/{}", uuid::Uuid::new_v4().to_string())), + object_model.context = Some(object_model.id.clone()), (_, Some(_)) => {}, // leave it as set by user }