Exclude local profiles when looking up activity signer
This commit is contained in:
parent
109a519607
commit
ff12501ec0
1 changed files with 5 additions and 1 deletions
|
@ -137,7 +137,11 @@ pub async fn verify_signed_activity(
|
||||||
actor_profile
|
actor_profile
|
||||||
},
|
},
|
||||||
JsonSigner::DidPkh(ref signer) => {
|
JsonSigner::DidPkh(ref signer) => {
|
||||||
let mut profiles = search_profiles_by_did_only(db_client, signer).await?;
|
let mut profiles: Vec<_> = search_profiles_by_did_only(db_client, signer)
|
||||||
|
.await?.into_iter()
|
||||||
|
// Exclude local profiles
|
||||||
|
.filter(|profile| !profile.is_local())
|
||||||
|
.collect();
|
||||||
if profiles.len() > 1 {
|
if profiles.len() > 1 {
|
||||||
log::info!(
|
log::info!(
|
||||||
"signer with multiple profiles ({})",
|
"signer with multiple profiles ({})",
|
||||||
|
|
Loading…
Reference in a new issue