[Pleroma.Web.MastodonAPI.MastodonAPIController]: fallback for try_render/4

Better be sure than sorry
This commit is contained in:
Haelwenn (lanodan) Monnier 2018-10-25 06:05:13 +02:00
parent b112112c11
commit b386888a0e
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE
1 changed files with 6 additions and 0 deletions

View File

@ -1215,4 +1215,10 @@ def try_render(conn, renderer, target, params)
res res
end end
end end
def try_render(conn, _, _, _) do
conn
|> put_status(501)
|> json(%{error: "Can't display this activity"})
end
end end