diff options
author | Dessalines <tyhou13@gmx.com> | 2020-04-26 13:20:42 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-04-26 13:20:42 -0400 |
commit | 3ce061836242813730ec0b63240097347647dfc4 (patch) | |
tree | d6ebe9074753b4a92e4d4d94ba6b4b2d0770ea4d /server/src/api/community.rs | |
parent | 079ac091ebbeb2e3e1f91fba6c93b3e11e1c5fd6 (diff) |
Making a trait function for follow and accept.
Diffstat (limited to 'server/src/api/community.rs')
-rw-r--r-- | server/src/api/community.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/api/community.rs b/server/src/api/community.rs index ace5b353..174a91c8 100644 --- a/server/src/api/community.rs +++ b/server/src/api/community.rs @@ -488,7 +488,7 @@ impl Perform for Oper<FollowCommunity> { } else { // TODO: still have to implement unfollow let user = User_::read(&conn, user_id)?; - follow_community(&community, &user, &conn)?; + user.send_follow(&community.actor_id)?; // TODO: this needs to return a "pending" state, until Accept is received from the remote server } |