lint
This commit is contained in:
parent
5f321b0b5b
commit
3760480813
2 changed files with 6 additions and 5 deletions
|
|
@ -30,6 +30,7 @@ defmodule Pleroma.Web.Plugs.FaviconPlug do
|
|||
# Favicon should always be available and this should never occur.
|
||||
# If it does, halt the pipeline before having unintended side-effects.
|
||||
Logger.error("No favicon.png found! Is the default favicon deleted?")
|
||||
|
||||
conn
|
||||
|> send_resp(404, "Not found")
|
||||
|> halt()
|
||||
|
|
@ -40,7 +41,7 @@ defmodule Pleroma.Web.Plugs.FaviconPlug do
|
|||
conn
|
||||
end
|
||||
|
||||
defp find_favicon_dir() do
|
||||
defp find_favicon_dir do
|
||||
instance_dir = Pleroma.Config.get([:instance, :static_dir], "instance/static")
|
||||
instance_path = Path.join(instance_dir, "favicon.png")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue