fix error

This commit is contained in:
chiu 2021-08-14 16:17:59 +08:00
parent 144f49fa70
commit a27d1818f5
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class BulletinFeed
tags = bf.tag_ids
categories = bf.category_ids
if !(categories.empty? && tags.empty?)
anns_before_filter = Bulletin.any_of([{"title.en"=>{"$nin"=>["", nil]}},{"title.zh_tw"=>{"$nin"=>["", nil]}}]).is_approved_and_show
anns_before_filter = Bulletin.any_of(I18n.available_locales.map{|v| {"title.#{v}"=>{"$nin"=>["", nil]}}}).is_approved_and_show
if !dt.nil?
dt = DateTime.parse(dt)
dtt = dt + 1.day