fix duplicated announcement when rss feed
This commit is contained in:
parent
b9f62c6382
commit
5c8f822993
|
@ -84,7 +84,7 @@ recent_feed.each do |title, bulletin|
|
|||
categories, coll_bulletin, coll_cat = get_mongo_and_categories
|
||||
category_id, categories = get_category_id(bulletin[:category], categories, coll_cat)
|
||||
|
||||
unless coll_bulletin.find_one(rss_link: bulletin[:link])
|
||||
unless coll_bulletin.find_one(title: {:zh_tw => title, :en => ""})
|
||||
bulletin = { _type: "Bulletin",
|
||||
postdate: bulletin[:date],
|
||||
created_at: bulletin[:date],
|
||||
|
|
Loading…
Reference in New Issue