From a1cabeea4aad2101361b35c47c1bc03e033b4d7c Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Mon, 12 Jun 2017 12:52:40 +0200 Subject: [PATCH] Redirect html user profile request. --- lib/pleroma/web/ostatus/ostatus_controller.ex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/web/ostatus/ostatus_controller.ex b/lib/pleroma/web/ostatus/ostatus_controller.ex index 948996d01..e676a60c3 100644 --- a/lib/pleroma/web/ostatus/ostatus_controller.ex +++ b/lib/pleroma/web/ostatus/ostatus_controller.ex @@ -9,7 +9,11 @@ defmodule Pleroma.Web.OStatus.OStatusController do def feed_redirect(conn, %{"nickname" => nickname}) do 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 def feed(conn, %{"nickname" => nickname}) do -- 2.45.2