mirror of https://github.com/mastodon/mastodon
Change default size for site_icon_path
This commit is contained in:
parent
11bb58a4e5
commit
57adc74d6b
|
@ -232,7 +232,7 @@ module ApplicationHelper
|
||||||
EmojiFormatter.new(html, custom_emojis, other_options.merge(animate: prefers_autoplay?)).to_s
|
EmojiFormatter.new(html, custom_emojis, other_options.merge(animate: prefers_autoplay?)).to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
def site_icon_path(type, size = :'32')
|
def site_icon_path(type, size = '48')
|
||||||
icon = SiteUpload.find_by(var: type)
|
icon = SiteUpload.find_by(var: type)
|
||||||
return nil unless icon
|
return nil unless icon
|
||||||
|
|
||||||
|
|
|
@ -291,7 +291,7 @@ describe ApplicationHelper do
|
||||||
let!(:favicon) { Fabricate(:site_upload, var: 'favicon') }
|
let!(:favicon) { Fabricate(:site_upload, var: 'favicon') }
|
||||||
|
|
||||||
it 'returns the URL of the icon' do
|
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
|
end
|
||||||
|
|
||||||
it 'returns the URL of the icon with size parameter' do
|
it 'returns the URL of the icon with size parameter' do
|
||||||
|
|
Loading…
Reference in New Issue