projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide totalItems field for featured collections
[akkoma]
/
lib
/
pleroma
/
web
/
fallback
/
redirect_controller.ex
diff --git
a/lib/pleroma/web/fallback/redirect_controller.ex
b/lib/pleroma/web/fallback/redirect_controller.ex
index 712991c1888d3e4deca00ac90502e47ffeb43c7e..5fca290e56d4ec6a780826dfe46a10d0aae7bc5f 100644
(file)
--- 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
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Fallback.RedirectController do
# 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
response =
index_content
- |> String.replace(~r/<title>.+?<\/title>/, title)
- |> String.replace("<!--server-generated-meta-->", tags <> preloads)
+ |> String.replace("<!--server-generated-meta-->", tags <> preloads <> title)
conn
|> put_resp_content_type("text/html")
conn
|> put_resp_content_type("text/html")
@@
-60,8
+59,7
@@
defmodule Pleroma.Web.Fallback.RedirectController do
response =
index_content
response =
index_content
- |> String.replace(~r/<title>.+?<\/title>/, title)
- |> String.replace("<!--server-generated-meta-->", preloads)
+ |> String.replace("<!--server-generated-meta-->", preloads <> title)
conn
|> put_resp_content_type("text/html")
conn
|> put_resp_content_type("text/html")