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,
|
key: :favicon,
|
||||||
type: {:string, :image},
|
type: {:string, :image},
|
||||||
description:
|
description: "Favicon of the instance",
|
||||||
"Favicon of the instance",
|
|
||||||
suggestions: ["/favicon.png"]
|
suggestions: ["/favicon.png"]
|
||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
|
|
|
||||||
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue