mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-26 17:55:06 +01:00
Revert "Better error handling for user feeds."
This reverts commit 11714fbaa2
.
This commit is contained in:
parent
11714fbaa2
commit
27b8e3affb
@ -8,13 +8,11 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
||||
import Ecto.Query
|
||||
|
||||
def feed_redirect(conn, %{"nickname" => nickname}) do
|
||||
with %User{} = user <- User.get_cached_by_nickname(nickname) do
|
||||
case get_format(conn) do
|
||||
"html" -> Fallback.RedirectController.redirector(conn, nil)
|
||||
_ -> redirect conn, external: OStatus.feed_path(user)
|
||||
end
|
||||
else
|
||||
_e -> send_resp(conn, 404, "No user found")
|
||||
user = User.get_cached_by_nickname(nickname)
|
||||
|
||||
case get_format(conn) do
|
||||
"html" -> Fallback.RedirectController.redirector(conn, nil)
|
||||
_ -> redirect conn, external: OStatus.feed_path(user)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user