fix: dont overwrite private key
This commit is contained in:
parent
3734c5f1c2
commit
e7e1a926c1
1 changed files with 1 additions and 0 deletions
|
@ -309,6 +309,7 @@ impl AP {
|
|||
pub fn actor_q(actor: &impl apb::Actor, internal: Option<i64>) -> Result<crate::model::actor::ActiveModel, NormalizerError> {
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue