Allow admins to configure instance favicon and logo (#30040)
This commit is contained in:
parent
b152f936c1
commit
bc24c4792d
9 changed files with 87 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue