don't add default channel title

This commit is contained in:
chiu 2022-09-28 00:34:27 +00:00
parent 0555890e8d
commit 0ff710332f
1 changed files with 2 additions and 2 deletions

View File

@ -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)