Fix default language in ProcessFeedService

This commit is contained in:
Eugen Rochko 2017-04-14 22:32:31 +02:00
parent 68d8adc621
commit 02749c7c1f

View file

@ -232,7 +232,7 @@ class ProcessFeedService < BaseService
end
def content_language(xml = @xml)
xml.at_xpath('./xmlns:content', xmlns: TagManager::XMLNS)['xml:lang']
xml.at_xpath('./xmlns:content', xmlns: TagManager::XMLNS)['xml:lang']&.presence || 'en'
end
def content_warning(xml = @xml)