diff options
Diffstat (limited to 'server/src/api/community.rs')
-rw-r--r-- | server/src/api/community.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/api/community.rs b/server/src/api/community.rs index 9855b788..55c55ee1 100644 --- a/server/src/api/community.rs +++ b/server/src/api/community.rs @@ -495,7 +495,7 @@ impl Perform for Oper<FollowCommunity> { Err(_e) => return Err(APIError::err("community_follower_already_exists").into()), }; } else { - match CommunityFollower::ignore(&conn, &community_follower_form) { + match CommunityFollower::unfollow(&conn, &community_follower_form) { Ok(user) => user, Err(_e) => return Err(APIError::err("community_follower_already_exists").into()), }; @@ -509,7 +509,7 @@ impl Perform for Oper<FollowCommunity> { user.send_follow(&community.actor_id, &conn)?; } else { user.send_unfollow(&community.actor_id, &conn)?; - match CommunityFollower::ignore(&conn, &community_follower_form) { + match CommunityFollower::unfollow(&conn, &community_follower_form) { Ok(user) => user, Err(_e) => return Err(APIError::err("community_follower_already_exists").into()), }; |