fix error
This commit is contained in:
parent
471d14f12f
commit
4479710543
|
@ -45,10 +45,12 @@ class SiteFeedAnnc
|
|||
tmp["source-site-title"] = (self[:channel_title][locale] rescue "")
|
||||
tmp["params"] = tmp["params"].to_s + "_" + self.feed_id.to_s + "h"
|
||||
next if !site_source.nil? && site_source != tmp["source-site-title"]
|
||||
if !tmp["source-site-title"].blank?
|
||||
tmp['statuses'] << {
|
||||
"status" => "<a href='#{tmp["source-site"]}' target='_blank' class='feed-source'>#{tmp["source-site-title"]}</a>",
|
||||
"status-class" => "status-source"
|
||||
}
|
||||
end
|
||||
|
||||
files = tmp["bulletin_files"].collect{|bf| { "file_url" => bf["url"], "file_title" => (bf["title_translations"][locale].blank? ? File.basename(bf["url"]) : bf["title_translations"][locale] rescue '') }} rescue []
|
||||
links = tmp["bulletin_links"].map{|link| { "link_url" => link["url"], "link_title" => (link["title_translations"][locale].blank? ? link["url"] : link["title_translations"][locale]) } } rescue []
|
||||
|
|
Loading…
Reference in New Issue