aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/twitter_api
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-04-12 16:38:55 +0200
committerRoger Braun <roger@rogerbraun.net>2017-04-12 16:38:55 +0200
commit15655d992e8ba2aa8d4680eb38a8d3039b58703a (patch)
tree1302febad8036ae0ec7f39fc942b45d8e37938b8 /lib/pleroma/web/twitter_api
parentb5e94bf9301713fd9eb3b80dbcf64ae6782092bc (diff)
downloadpleroma-15655d992e8ba2aa8d4680eb38a8d3039b58703a.tar.gz
Fix user representation after following.
Diffstat (limited to 'lib/pleroma/web/twitter_api')
-rw-r--r--lib/pleroma/web/twitter_api/twitter_api_controller.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/twitter_api/twitter_api_controller.ex b/lib/pleroma/web/twitter_api/twitter_api_controller.ex
index f2c893e96..c3a58b63a 100644
--- a/lib/pleroma/web/twitter_api/twitter_api_controller.ex
+++ b/lib/pleroma/web/twitter_api/twitter_api_controller.ex
@@ -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})