mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-12 18:56:12 +00:00
Rename check_has_local_followers function.
This commit is contained in:
parent
73bd557eaf
commit
8e27deadf7
|
@ -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(())
|
||||
|
|
|
@ -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<()> {
|
||||
|
|
Loading…
Reference in a new issue