From e7e1a926c148467da88100a3703004b9128d12cf Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 21 Jun 2024 05:44:42 +0200 Subject: [PATCH] fix: dont overwrite private key --- upub/core/src/traits/normalize.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/upub/core/src/traits/normalize.rs b/upub/core/src/traits/normalize.rs index dd0c8c19..8238eabf 100644 --- a/upub/core/src/traits/normalize.rs +++ b/upub/core/src/traits/normalize.rs @@ -309,6 +309,7 @@ impl AP { pub fn actor_q(actor: &impl apb::Actor, internal: Option) -> Result { let mut m = AP::actor(actor)?.into_active_model(); m = m.reset_all(); + m.public_key = NotSet; match internal { Some(x) => m.internal = Unchanged(x), None => m.internal = NotSet,