[#534] Refactoring / tweaks per MR review.
This commit is contained in:
parent
d99650270b
commit
9560abea10
10 changed files with 36 additions and 57 deletions
|
|
@ -15,7 +15,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
|||
alias Pleroma.Web.ActivityPub.ActivityPub
|
||||
|
||||
plug(Pleroma.Web.FederatingPlug when action in [:salmon_incoming])
|
||||
plug(:set_requester_reachable when action in [:salmon_incoming])
|
||||
plug(Pleroma.Web.Plugs.SetRequesterReachablePlug when action in [:salmon_incoming])
|
||||
|
||||
action_fallback(:errors)
|
||||
|
||||
|
|
@ -203,9 +203,4 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
|||
|> put_status(500)
|
||||
|> text("Something went wrong")
|
||||
end
|
||||
|
||||
defp set_requester_reachable(conn, _) do
|
||||
Pleroma.Web.ControllerHelper.set_requester_reachable(conn)
|
||||
conn
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue