diff options
-rw-r--r-- | adenosine-pds/src/bsky.rs | 4 | ||||
-rw-r--r-- | adenosine-pds/src/lib.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/adenosine-pds/src/bsky.rs b/adenosine-pds/src/bsky.rs index 89978fb..ed4fe10 100644 --- a/adenosine-pds/src/bsky.rs +++ b/adenosine-pds/src/bsky.rs @@ -68,7 +68,7 @@ pub fn bsky_get_profile(srv: &mut AtpService, did: &Did) -> Result<Profile> { let full_map = srv.repo.mst_to_map(&last_commit.mst_cid)?; let prefix = "/app.bsky.actor.profile/"; for (mst_key, cid) in full_map.iter() { - if mst_key.starts_with(&prefix) { + if mst_key.starts_with(prefix) { profile_cid = Some(*cid); } } @@ -120,7 +120,7 @@ pub fn bsky_update_profile(srv: &mut AtpService, did: &Did, profile: ProfileReco let full_map = srv.repo.mst_to_map(&last_commit.mst_cid)?; let prefix = "/app.bsky.actor.profile/"; for (mst_key, _cid) in full_map.iter() { - if mst_key.starts_with(&prefix) { + if mst_key.starts_with(prefix) { profile_tid = Some(Tid::from_str(mst_key.split('/').nth(2).unwrap())?); } } diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs index 6c4649d..9721652 100644 --- a/adenosine-pds/src/lib.rs +++ b/adenosine-pds/src/lib.rs @@ -617,7 +617,7 @@ fn xrpc_post_handler( Ok(json!(AtpSession { did: did.to_string(), - name: handle.to_string(), + name: handle, accessJwt: jwt.to_string(), refreshJwt: jwt.to_string(), })) |