We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f8ab62 commit e8b62e8Copy full SHA for e8b62e8
plugins/store/database.rb
@@ -3,7 +3,7 @@
3
# Author:: kzgs
4
# 774 <http://id774.net>
5
# Created:: Feb 27, 2012
6
-# Updated:: Jun 17, 2012
+# Updated:: Sep 18, 2012
7
# Copyright:: kzgs Copyright (c) 2012
8
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
9
@@ -19,9 +19,11 @@ def for_each_new_feed
19
unless feeds.nil?
20
new_feed = false
21
feeds.items.each { |feed|
22
- unless existing_records.detect { |b| b.try(unique_key) == feed.link }
23
- yield(feed)
24
- new_feed = true
+ unless feed.link.nil?
+ unless existing_records.detect { |b| b.try(unique_key) == feed.link }
+ yield(feed)
25
+ new_feed = true
26
+ end
27
end
28
}
29
@return_feeds << feeds if new_feed
0 commit comments