Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into reject

This commit is contained in:
lain 2020-08-12 12:53:04 +02:00
commit bb92ad44a6
5 changed files with 44 additions and 10 deletions

View file

@ -18,6 +18,12 @@ defmodule Pleroma.Web.ControllerHelper do
def truthy_param?(value), do: not falsy_param?(value)
def json_response(conn, status, _) when status in [204, :no_content] do
conn
|> put_resp_header("content-type", "application/json")
|> send_resp(status, "")
end
def json_response(conn, status, json) do
conn
|> put_status(status)