summaryrefslogtreecommitdiffstats
path: root/server/src/api/community.rs
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-05-04 14:26:16 -0400
committerDessalines <tyhou13@gmx.com>2020-05-04 14:26:16 -0400
commitb177cbce1d8f40b9eb514e210a66798aabcbae09 (patch)
treef0cf867a4ced0bbdb531fd69207c4c1aa87ea7cc /server/src/api/community.rs
parentb8b2398d32908c982635070ce1ce58eee504dc1d (diff)
Renaming ignore to unfollow in followable trait.
Diffstat (limited to 'server/src/api/community.rs')
-rw-r--r--server/src/api/community.rs4
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()),
};