summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSadposter <hannah+pleroma@coffee-and-dreams.uk>2019-05-20 12:58:06 +0100
committerSadposter <hannah+pleroma@coffee-and-dreams.uk>2019-05-20 12:58:06 +0100
commite81f0fc6d45249dd70656c58af926c21c70c482f (patch)
treec2f653a2f47fefaa0245aea23be6a1b261f7cf33 /lib
parent54e9cb5c2db580bc12441f3651fa87a7b976137d (diff)
downloadpleroma-e81f0fc6d45249dd70656c58af926c21c70c482f.tar.gz
pleroma-e81f0fc6d45249dd70656c58af926c21c70c482f.zip
Add mascot get/set tests
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api_controller.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
index 67f363859..d7f095a1f 100644
--- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
+++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
@@ -729,6 +729,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|> json(rendered)
else
conn
+ |> put_resp_content_type("application/json")
|> send_resp(415, Jason.encode!(%{"error" => "mascots can only be images"}))
end
end