]> Untitled Git - lemmy.git/blobdiff - crates/api/src/community/ban.rs
Making community_follower.pending column not null.
[lemmy.git] / crates / api / src / community / ban.rs
index 60fd32270f76ae7db7022ea0fa32bbe2e2ba4477..f4a727ebe446d42e0c30111db90c9d9a4bffc032 100644 (file)
@@ -76,7 +76,7 @@ impl Perform for BanFromCommunity {
       let community_follower_form = CommunityFollowerForm {
         community_id: data.community_id,
         person_id: banned_person_id,
-        pending: false,
+        pending: Some(false),
       };
       blocking(context.pool(), move |conn: &'_ _| {
         CommunityFollower::unfollow(conn, &community_follower_form)