diff --git a/src/rss_thread_watch/watcher.clj b/src/rss_thread_watch/watcher.clj index e6b33db..56489a2 100644 --- a/src/rss_thread_watch/watcher.clj +++ b/src/rss_thread_watch/watcher.clj @@ -33,7 +33,9 @@ (recur (rest remaining-threads) threads-total (inc index) - (conj! ret {:title (:sub thread) + (conj! ret {:title (or (:sub thread) ;We use thread title if thread has it + (:com thread) ;we use body if thread has it + "") ;Thread has nothing, this prevents null pointer :no (:no thread) :chod (* 100 (float (/ index threads-total)))}))))))