From 46955a402412451e17586940772c439efa0de634 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 22 Jul 2020 14:14:12 +0800 Subject: [PATCH] fix error --- app/views/admin/feeds/_announcements.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/feeds/_announcements.html.erb b/app/views/admin/feeds/_announcements.html.erb index f72b59c..6c9f832 100644 --- a/app/views/admin/feeds/_announcements.html.erb +++ b/app/views/admin/feeds/_announcements.html.erb @@ -11,7 +11,7 @@ <% @all_feed_annc.each do |feed_annc| %> <% feed_name = available_locales.collect{|v| feed_annc[:feed_name][v]}.join(' / ') %> - <% if @source.blank? || (@source.include?(feed_annc.channel_title) rescue false) || @source.include?(feed_annc.remote_site_url.gsub(/http:\/\/|https:\/\//,'').gsub(/\./,'-')) %> + <% if @source.blank? || (@source.include?(feed_annc.channel_title) rescue false) || @source.include?(feed_annc.remote_site_url.to_s.gsub(/http:\/\/|https:\/\//,'').gsub(/\./,'-')) %> <% Array(feed_annc[:all_contents_for_feed]).each do |annc| %> <% annc_title = available_locales.collect{|v| annc['title_translations'][v]}.join('/') %> <% annc_tags = annc['tags'].collect{|tmp| available_locales.collect{|v| tmp['name_translations'][v]}.join(' / ')} %>