From b177cbce1d8f40b9eb514e210a66798aabcbae09 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 4 May 2020 14:26:16 -0400 Subject: Renaming ignore to unfollow in followable trait. --- server/src/api/community.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/src/api/community.rs') 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 { 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 { 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()), }; -- cgit v1.2.3