mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-19 11:45:01 +00:00
Redirect html user profile request.
This commit is contained in:
parent
6342fcd5dc
commit
a1cabeea4a
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,11 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
||||||
|
|
||||||
def feed_redirect(conn, %{"nickname" => nickname}) do
|
def feed_redirect(conn, %{"nickname" => nickname}) do
|
||||||
user = User.get_cached_by_nickname(nickname)
|
user = User.get_cached_by_nickname(nickname)
|
||||||
redirect conn, external: OStatus.feed_path(user)
|
|
||||||
|
case get_format(conn) do
|
||||||
|
"html" -> Fallback.RedirectController.redirector(conn, nil)
|
||||||
|
_ -> redirect conn, external: OStatus.feed_path(user)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def feed(conn, %{"nickname" => nickname}) do
|
def feed(conn, %{"nickname" => nickname}) do
|
||||||
|
|
Loading…
Reference in a new issue