Add mascot get/set tests

This commit is contained in:
Sadposter 2019-05-20 12:58:06 +01:00
commit e81f0fc6d4
No known key found for this signature in database
GPG key ID: 6F3BAD60DE190290
3 changed files with 66 additions and 0 deletions

View file

@ -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