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