]> git.cworth.org Git - sup/commitdiff
poll bugfix thanks to magnus: only use source_marked_read? if it's true
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 19 Sep 2007 16:01:54 +0000 (16:01 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 19 Sep 2007 16:01:54 +0000 (16:01 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@588 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/poll.rb

index a6c809bdcc0de719cac43c82842b7de0e556fde4..f36c37fb0407e3746513c520023f48ebea029851 100644 (file)
@@ -144,9 +144,6 @@ EOS
           if m.source_marked_read?
             m.remove_label :unread
             labels.delete :unread
-          else
-            m.add_label :unread
-            labels << :unread
           end
 
           docid, entry = Index.load_entry_for_id m.id