2
0

Allow admins to configure instance favicon and logo (#30040)

This commit is contained in:
Fawaz Farid
2024-05-06 18:06:52 +03:00
committed by GitHub
parent b152f936c1
commit bc24c4792d
9 changed files with 87 additions and 19 deletions

View File

@@ -240,6 +240,13 @@ module ApplicationHelper
EmojiFormatter.new(html, custom_emojis, other_options.merge(animate: prefers_autoplay?)).to_s
end
def site_icon_path(type, size = '48')
icon = SiteUpload.find_by(var: type)
return nil unless icon
icon.file.url(size)
end
private
def storage_host_var