twitter api: also remove explicit User.follow here
authorWilliam Pitcock <nenolod@dereferenced.org>
Fri, 25 May 2018 08:35:38 +0000 (08:35 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Fri, 25 May 2018 09:40:06 +0000 (09:40 +0000)
lib/pleroma/web/twitter_api/twitter_api.ex

index 3ccdaed6ff38e7f462e6ce03970b401e781497c0..903c99a8e39516f05c4c1e534ec2a339c0ce3707 100644 (file)
@@ -25,7 +25,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
 
   def follow(%User{} = follower, params) do
     with {:ok, %User{} = followed} <- get_user(params),
-         {:ok, follower} <- User.follow(follower, followed),
          {:ok, activity} <- ActivityPub.follow(follower, followed) do
       {:ok, follower, followed, activity}
     else