Rename check_has_local_followers function.

This commit is contained in:
Dessalines 2024-09-10 13:47:15 -04:00
parent 73bd557eaf
commit 8e27deadf7
2 changed files with 2 additions and 2 deletions

View file

@ -218,7 +218,7 @@ async fn can_accept_activity_in_community(
return Err(LemmyErrorType::CouldntFindCommunity.into());
}
if !community.local {
CommunityFollower::has_local_followers(&mut context.pool(), community.id).await?
CommunityFollower::check_has_local_followers(&mut context.pool(), community.id).await?
}
}
Ok(())

View file

@ -321,7 +321,7 @@ impl CommunityFollower {
/// Check if a remote instance has any followers on local instance. For this it is enough to check
/// if any follow relation is stored. Dont use this for local community.
pub async fn has_local_followers(
pub async fn check_has_local_followers(
pool: &mut DbPool<'_>,
remote_community_id: CommunityId,
) -> LemmyResult<()> {