Fix default language in ProcessFeedService
This commit is contained in:
parent
68d8adc621
commit
02749c7c1f
|
@ -232,7 +232,7 @@ class ProcessFeedService < BaseService
|
||||||
end
|
end
|
||||||
|
|
||||||
def content_language(xml = @xml)
|
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
|
end
|
||||||
|
|
||||||
def content_warning(xml = @xml)
|
def content_warning(xml = @xml)
|
||||||
|
|
Reference in a new issue