X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Ffallback%2Fredirect_controller.ex;h=5fca290e56d4ec6a780826dfe46a10d0aae7bc5f;hb=46948537664a4296e7d5c517cbdbf3adccef1272;hp=712991c1888d3e4deca00ac90502e47ffeb43c7e;hpb=3cd7ea693fa820c04257b893725100eccf1cc96c;p=akkoma
diff --git a/lib/pleroma/web/fallback/redirect_controller.ex b/lib/pleroma/web/fallback/redirect_controller.ex
index 712991c18..5fca290e5 100644
--- a/lib/pleroma/web/fallback/redirect_controller.ex
+++ b/lib/pleroma/web/fallback/redirect_controller.ex
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors
+# Copyright © 2017-2021 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Fallback.RedirectController do
@@ -41,8 +41,7 @@ defmodule Pleroma.Web.Fallback.RedirectController do
response =
index_content
- |> String.replace(~r/
.+?<\/title>/, title)
- |> String.replace("", tags <> preloads)
+ |> String.replace("", tags <> preloads <> title)
conn
|> put_resp_content_type("text/html")
@@ -60,8 +59,7 @@ defmodule Pleroma.Web.Fallback.RedirectController do
response =
index_content
- |> String.replace(~r/.+?<\/title>/, title)
- |> String.replace("", preloads)
+ |> String.replace("", preloads <> title)
conn
|> put_resp_content_type("text/html")