twitter api: also remove explicit User.follow here

This commit is contained in:
William Pitcock 2018-05-25 08:35:38 +00:00
parent 62c95e8d4d
commit c89b90222c

View 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