Merge branch 'favicon' into shigusegubu
This commit is contained in:
commit
034189afc8
3 changed files with 6 additions and 3 deletions
1
changelog.d/favicon.add
Normal file
1
changelog.d/favicon.add
Normal file
|
|
@ -0,0 +1 @@
|
|||
Add support for configuring favicon, embed favicon and PWA manifest in server-generated meta
|
||||
|
|
@ -990,8 +990,7 @@ config :pleroma, :config_description, [
|
|||
%{
|
||||
key: :favicon,
|
||||
type: {:string, :image},
|
||||
description:
|
||||
"Favicon of the instance",
|
||||
description: "Favicon of the instance",
|
||||
suggestions: ["/favicon.png"]
|
||||
},
|
||||
%{
|
||||
|
|
|
|||
|
|
@ -43,7 +43,10 @@ defmodule Pleroma.Web.Fallback.RedirectController do
|
|||
|
||||
response =
|
||||
index_content
|
||||
|> String.replace("<!--server-generated-meta-->", tags <> preloads <> title <> favicon <> manifest)
|
||||
|> String.replace(
|
||||
"<!--server-generated-meta-->",
|
||||
tags <> preloads <> title <> favicon <> manifest
|
||||
)
|
||||
|
||||
conn
|
||||
|> put_resp_content_type("text/html")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue