Change default size for site_icon_path

This commit is contained in:
Fawaz Farid 2024-04-30 21:59:38 +03:00
parent 11bb58a4e5
commit 57adc74d6b
2 changed files with 2 additions and 2 deletions

View file

@ -232,7 +232,7 @@ module ApplicationHelper
EmojiFormatter.new(html, custom_emojis, other_options.merge(animate: prefers_autoplay?)).to_s
end
def site_icon_path(type, size = :'32')
def site_icon_path(type, size = '48')
icon = SiteUpload.find_by(var: type)
return nil unless icon

View file

@ -291,7 +291,7 @@ describe ApplicationHelper do
let!(:favicon) { Fabricate(:site_upload, var: 'favicon') }
it 'returns the URL of the icon' do
expect(helper.site_icon_path('favicon')).to eq(favicon.file.url('32'))
expect(helper.site_icon_path('favicon')).to eq(favicon.file.url('48'))
end
it 'returns the URL of the icon with size parameter' do