From 4992e25b3acf7017e860640912eb867bd6842c6b Mon Sep 17 00:00:00 2001 From: kernelkind Date: Sun, 24 Aug 2025 23:17:01 -0400 Subject: [PATCH] unknownids: use pk bytes Signed-off-by: kernelkind --- crates/notedeck/src/unknowns.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/notedeck/src/unknowns.rs b/crates/notedeck/src/unknowns.rs index 05e86916..1287a22e 100644 --- a/crates/notedeck/src/unknowns.rs +++ b/crates/notedeck/src/unknowns.rs @@ -195,13 +195,13 @@ impl UnknownIds { } } - pub fn add_pubkey_if_missing(&mut self, ndb: &Ndb, txn: &Transaction, pubkey: &Pubkey) { + pub fn add_pubkey_if_missing(&mut self, ndb: &Ndb, txn: &Transaction, pubkey: &[u8; 32]) { // we already have this profile, skip if ndb.get_profile_by_pubkey(txn, pubkey).is_ok() { return; } - let unknown_id = UnknownId::Pubkey(*pubkey); + let unknown_id = UnknownId::Pubkey(Pubkey::new(*pubkey)); if self.ids.contains_key(&unknown_id) { return; }