fix error
This commit is contained in:
parent
144f49fa70
commit
a27d1818f5
|
@ -55,7 +55,7 @@ class BulletinFeed
|
||||||
tags = bf.tag_ids
|
tags = bf.tag_ids
|
||||||
categories = bf.category_ids
|
categories = bf.category_ids
|
||||||
if !(categories.empty? && tags.empty?)
|
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?
|
if !dt.nil?
|
||||||
dt = DateTime.parse(dt)
|
dt = DateTime.parse(dt)
|
||||||
dtt = dt + 1.day
|
dtt = dt + 1.day
|
||||||
|
|
Loading…
Reference in New Issue