lib/tweetable/twitter_streaming_client.rb in tweetable-0.1.10 vs lib/tweetable/twitter_streaming_client.rb in tweetable-0.1.11

- old
+ new

@@ -41,10 +41,10 @@ message = Message.create_from_timeline(status, true) Tweetable.log.debug("[#{keyword}] #{message.sent_at} #{message.text} (#{message.message_id})") search = Search.find_or_create(:query, keyword.downcase) search.update(:updated_at => Time.now.utc.to_s) - search.messages << message + search.messages << message unless search.messages.include?(message) end message end \ No newline at end of file