Fix user representation after following.
This commit is contained in:
parent
b5e94bf930
commit
15655d992e
2 changed files with 3 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|
|||
end
|
||||
|
||||
def follow(%{assigns: %{user: user}} = conn, %{ "user_id" => followed_id }) do
|
||||
{ :ok, _user, follower, _activity } = TwitterAPI.follow(user, followed_id)
|
||||
{ :ok, user, follower, _activity } = TwitterAPI.follow(user, followed_id)
|
||||
|
||||
response = follower |> UserRepresenter.to_json(%{for: user})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue