mirror of
https://github.com/jtomchak/akkoma.git
synced 2025-02-07 22:33:40 +01:00
[Pleroma.Web.MastodonAPI.MastodonAPIController]: fallback for try_render/4
Better be sure than sorry
This commit is contained in:
parent
b112112c11
commit
b386888a0e
1 changed files with 6 additions and 0 deletions
|
@ -1215,4 +1215,10 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue