FIX: Coalesce properly logos for the mobile manifest

This commit is contained in:
Rafael dos Santos Silva 2017-11-01 02:28:09 -02:00
parent 32b3847d52
commit 3c8b376e4a

View File

@ -13,7 +13,7 @@ class MetadataController < ApplicationController
private
def default_manifest
logo = SiteSetting.mobile_logo_url || SiteSetting.logo_small_url || SiteSetting.apple_touch_icon_url
logo = SiteSetting.mobile_logo_url.presence || SiteSetting.logo_small_url.presence || SiteSetting.apple_touch_icon_url.presence
manifest = {
name: SiteSetting.title,