Scribbish Spam Comments in Typo

We've been getting a bunch of comment spam lately and they are still displayed when correctly marked as spam in Typo 4.0.3 with the Scribbish 2.0 theme. I believe this is fixed in Scribbish 3.0, but I'm not sure if it's compatible with our version of Typo. Here's a small patch to the Scribbish theme that only displays published comments instead of all comments.
--- themes/scribbish/views/articles/_comment.rhtml  2007-05-24 10:36:20.000000000 -0600
+++ themes/scribbish/views/articles/_comment_no_spam.rhtml  2007-05-24 10:35:14.000000000 -0600
@@ -1,5 +1,6 @@
 <ol id="comments" class="comments">
-  <% for comment in @article.comments -%>
+  <% if @article.published_comments.any? -%>
+    <% for comment in @article.published_comments -%>
     <li class="comment" id="comment-<%= comment.id %>">
       <div class="author">
         <%= content_tag(:div, gravatar_tag(comment.email)) if config_value(:use_gravatar) and comment.email %>
@@ -10,5 +11,8 @@
         <%= comment_html(comment) %>
       </div>
     </li>
+    <% end -%>
+  <% else -%>
+    <li class="dummy_comment" style="display:none">No comments</li>
   <% end -%>
 </ol>

Posted by Lee Marlow Thu, 24 May 2007 15:43:00 GMT


Comments

  1. Mr. Mephisto about 2 hours later:

    People still use Typo?

  2. Lee about 2 hours later:

    Looks like it.

    I believe we were on it before Mephisto came out and we haven’t had enough problems with Typo to look for a replacement.

  3. Mr. Mephisto about 3 hours later:

    Sorry. Bad joke. I meant no harm. Apologies.

  4. Lee about 3 hours later:

    No harm done. No apology necessary.

    Why did people move away from Typo? We just use it as a blogging tool, and it seems to work fine for us. What deficiencies are we not seeing?

  5. Adult Ühler about 1 year later:

    Thanks I am new to rails and looking to move to Typo after one too many WordPress hacks. When you loose your entire site you realise that those guys don’t have a clue what they are doing.

  6. Adult Ühler about 1 year later:

    Thanks I am new to rails and looking to move to Typo after one too many WordPress hacks. When you loose your entire site you realise that those guys don’t have a clue what they are doing.