Merge branch 'favicon' into shigusegubu

This commit is contained in:
Henry Jameson 2023-11-01 18:51:03 +02:00
commit 034189afc8
3 changed files with 6 additions and 3 deletions

1
changelog.d/favicon.add Normal file
View file

@ -0,0 +1 @@
Add support for configuring favicon, embed favicon and PWA manifest in server-generated meta

View file

@ -990,8 +990,7 @@ config :pleroma, :config_description, [
%{ %{
key: :favicon, key: :favicon,
type: {:string, :image}, type: {:string, :image},
description: description: "Favicon of the instance",
"Favicon of the instance",
suggestions: ["/favicon.png"] suggestions: ["/favicon.png"]
}, },
%{ %{

View file

@ -43,7 +43,10 @@ defmodule Pleroma.Web.Fallback.RedirectController do
response = response =
index_content index_content
|> String.replace("<!--server-generated-meta-->", tags <> preloads <> title <> favicon <> manifest) |> String.replace(
"<!--server-generated-meta-->",
tags <> preloads <> title <> favicon <> manifest
)
conn conn
|> put_resp_content_type("text/html") |> put_resp_content_type("text/html")