Ignoring errors.

content_removal_remote_users
Dessalines 2024-02-27 11:04:06 -05:00
parent 0caaac193d
commit 052860e62a
1 changed files with 3 additions and 1 deletions

View File

@ -187,6 +187,7 @@ pub(crate) async fn ban_nonlocal_user_from_local_communities(
}; };
if ban { if ban {
// Ignore all errors for these
CommunityPersonBan::ban(&mut context.pool(), &community_user_ban_form) CommunityPersonBan::ban(&mut context.pool(), &community_user_ban_form)
.await .await
.with_lemmy_type(LemmyErrorType::CommunityUserAlreadyBanned) .with_lemmy_type(LemmyErrorType::CommunityUserAlreadyBanned)
@ -205,7 +206,8 @@ pub(crate) async fn ban_nonlocal_user_from_local_communities(
} else { } else {
CommunityPersonBan::unban(&mut context.pool(), &community_user_ban_form) CommunityPersonBan::unban(&mut context.pool(), &community_user_ban_form)
.await .await
.with_lemmy_type(LemmyErrorType::CommunityUserAlreadyBanned)?; .with_lemmy_type(LemmyErrorType::CommunityUserAlreadyBanned)
.ok();
} }
// Mod tables // Mod tables