1
0
Fork 0
forked from alemi/upub

fix: dont overwrite private key

This commit is contained in:
əlemi 2024-06-21 05:44:42 +02:00
parent 3734c5f1c2
commit e7e1a926c1
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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,