diff options
author | eugenijm <eugenijm@protonmail.com> | 2019-02-10 02:26:29 +0300 |
---|---|---|
committer | eugenijm <eugenijm@protonmail.com> | 2019-02-15 12:20:20 +0300 |
commit | ecdf0657ba4a90d821d3874c827593963e0ff041 (patch) | |
tree | 070923fad99566531066618256e02c95abfe6c83 /lib/pleroma/web/twitter_api/twitter_api_controller.ex | |
parent | ea2698beb75074e6c94acf0c66bcdbdb47f59acd (diff) | |
download | pleroma-ecdf0657ba4a90d821d3874c827593963e0ff041.tar.gz |
Add logic for keeping follow_request_count up-to-date on the `follow`,
`approve_friend_request`, and `deny_friend_request` actions.
Add follow_request_count to the user view.
Diffstat (limited to 'lib/pleroma/web/twitter_api/twitter_api_controller.ex')
-rw-r--r-- | lib/pleroma/web/twitter_api/twitter_api_controller.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/twitter_api/twitter_api_controller.ex b/lib/pleroma/web/twitter_api/twitter_api_controller.ex index c2f0dc2a9..70ae4068a 100644 --- a/lib/pleroma/web/twitter_api/twitter_api_controller.ex +++ b/lib/pleroma/web/twitter_api/twitter_api_controller.ex @@ -570,7 +570,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do {:ok, _activity} <- ActivityPub.accept(%{ to: [follower.ap_id], - actor: followed.ap_id, + actor: followed, object: follow_activity.data["id"], type: "Accept" }) do @@ -590,7 +590,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do {:ok, _activity} <- ActivityPub.reject(%{ to: [follower.ap_id], - actor: followed.ap_id, + actor: followed, object: follow_activity.data["id"], type: "Reject" }) do |