diff --git a/lib/web/views/utils.ex b/lib/web/views/utils.ex
index 5fd5417d6..950efcd53 100644
--- a/lib/web/views/utils.ex
+++ b/lib/web/views/utils.ex
@@ -18,11 +18,8 @@ defmodule Mobilizon.Web.Views.Utils do
end
@spec replace_meta(String.t(), String.t()) :: String.t()
- # TODO: Find why it's different in dev/prod and during tests
defp replace_meta(index_content, tags) do
- index_content
- |> String.replace("", tags)
- |> String.replace("", tags)
+ String.replace(index_content, "", tags)
end
@spec do_replacements(String.t(), String.t(), String.t()) :: {:safe, String.t()}
@@ -30,7 +27,6 @@ defmodule Mobilizon.Web.Views.Utils do
index_content
|> replace_meta(tags)
|> String.replace("", "")
- |> String.replace("", "")
|> (&{:safe, &1}).()
end