don't add default channel title
This commit is contained in:
parent
0555890e8d
commit
0ff710332f
|
@ -193,7 +193,7 @@ class SiteFeed
|
|||
Category.find(self.merge_with_category) rescue nil
|
||||
end
|
||||
def channel_title_for_cache #empty? must for hash
|
||||
!self[:channel_title].blank? ? self[:channel_title] : I18n.available_locales.collect{|v| [v,I18n.t("feed.source")]}.to_h
|
||||
!self[:channel_title].blank? ? self[:channel_title] : {}#I18n.available_locales.collect{|v| [v,I18n.t("feed.source")]}.to_h
|
||||
end
|
||||
def http_request(http, request)
|
||||
response = http.request(request)
|
||||
|
|
Loading…
Reference in New Issue