This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
squeegily
/
pleroma
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
42
Wiki
Activity
Browse Source
MastodonAPI.MastodonAPIController: Return a 404 when we fail to get a list
tags/v0.9.9
Haelwenn (lanodan) Monnier
5 years ago
parent
0a82a7e6d6
commit
74c6119f28
No known key found for this signature in database
GPG Key ID:
D5B7A8E43C997DEE
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
+ 4
- 1
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
View File
@@ -905,7 +905,10 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
res = ListView.render("list.json", list: list)
json(conn, res)
else
_e -> json(conn, "error")
_e ->
conn
|> put_status(404)
|> json(%{error: "Record not found"})
end
end
Write
Preview
Loading…
Cancel
Save