Merge branch 'split-masto-api/follow-requests' into 'develop'
authorkaniini <ariadne@dereferenced.org>
Fri, 27 Sep 2019 07:54:54 +0000 (07:54 +0000)
committerkaniini <ariadne@dereferenced.org>
Fri, 27 Sep 2019 07:54:54 +0000 (07:54 +0000)
Extract follow requests actions from `MastodonAPIController` to `FollowRequestController`

See merge request pleroma/pleroma!1730

1  2 
lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
lib/pleroma/web/router.ex
test/web/mastodon_api/mastodon_api_controller_test.exs

index 731bec323ddb352d72daee2c21793408496097ff,72d3827a587517dcf39c0ed6ca9838a1f5a0a367..a025474e2b40f6ab64b9ef273c49a55efb640bf6
@@@ -419,11 -419,11 +419,11 @@@ defmodule Pleroma.Web.Router d
        post("/accounts/:id/mute", MastodonAPIController, :mute)
        post("/accounts/:id/unmute", MastodonAPIController, :unmute)
  
-       post("/follow_requests/:id/authorize", MastodonAPIController, :authorize_follow_request)
-       post("/follow_requests/:id/reject", MastodonAPIController, :reject_follow_request)
+       post("/follow_requests/:id/authorize", FollowRequestController, :authorize)
+       post("/follow_requests/:id/reject", FollowRequestController, :reject)
  
 -      post("/domain_blocks", MastodonAPIController, :block_domain)
 -      delete("/domain_blocks", MastodonAPIController, :unblock_domain)
 +      post("/domain_blocks", DomainBlockController, :create)
 +      delete("/domain_blocks", DomainBlockController, :delete)
  
        post("/pleroma/accounts/:id/subscribe", MastodonAPIController, :subscribe)
        post("/pleroma/accounts/:id/unsubscribe", MastodonAPIController, :unsubscribe)