From: William Morgan Date: Sun, 3 Feb 2008 04:18:48 +0000 (-0800) Subject: ThreadIndexMode: handle spam updates X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=874d3c9babf25c9c291b14979955dd04767195a8;p=sup ThreadIndexMode: handle spam updates --- diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 0809d54..460de1f 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -173,6 +173,13 @@ EOS update end + def handle_spammed_update sender, m + t = @ts_mutex.synchronize { @ts.thread_for m } + return unless t + hide_thread t + update + end + def handle_undeleted_update sender, m add_or_unhide m end