]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/activities/following/follow.rs
Making community_follower.pending column not null.
[lemmy.git] / crates / apub / src / activities / following / follow.rs
index d46b3dc20f130049faa1ff97259d05bc0dae7a7b..eb70cb91f231f0a8c328590e8b6542b41dfeb651 100644 (file)
@@ -50,7 +50,7 @@ impl FollowCommunity {
     let community_follower_form = CommunityFollowerForm {
       community_id: community.id,
       person_id: actor.id,
-      pending: true,
+      pending: Some(true),
     };
     blocking(context.pool(), move |conn| {
       CommunityFollower::follow(conn, &community_follower_form).ok()
@@ -100,7 +100,7 @@ impl ActivityHandler for FollowCommunity {
     let community_follower_form = CommunityFollowerForm {
       community_id: community.id,
       person_id: person.id,
-      pending: false,
+      pending: Some(false),
     };
 
     // This will fail if they're already a follower, but ignore the error.