public
Description: The ultra-lightweight ultra-flexible blogging engine with a fetish for birds and misspellings.
Homepage: http://chyrp.net/
Clone URL: git://github.com/vito/chyrp.git
Click here to lend your support to: chyrp and make a donation at www.pledgie.com !
Removed superfluous HTML stripping and markup_comment_text calling, and fixed 
how lists appear in comments.
vito (author)
Wed Jul 23 13:00:27 -0700 2008
commit  a414a91acd397712f5b86ccf64dc151b19f36f31
tree    f3496f018e5b866d7f28891e52853ee4114fe5a3
parent  46cd682e88fda5a775e7e4c2de3f46a0e0b89a01
...
509
510
511
512
513
514
515
516
517
518
519
520
521
...
712
713
714
715
716
717
718
719
720
721
722
723
724
...
509
510
511
 
 
 
 
 
 
 
512
513
514
...
705
706
707
 
 
 
 
 
 
 
708
709
710
0
@@ -509,13 +509,6 @@
0
           $comment = new Comment($_POST['comment_id']);
0
           $trigger->call("show_comment", $comment);
0
 
0
-          $group = ($comment->user_id and !$comment->user()->no_results) ?
0
-                   $comment->user()->group() :
0
-                   new Group(Config::current()->guest_group) ;
0
-          if (($comment->status != "pingback" and !$comment->status != "trackback") and !$group->can("code_in_comments"))
0
-            $comment->body = strip_tags($comment->body, "<".join("><", $config->allowed_comment_html).">");
0
-
0
-          $trigger->filter($comment->body, "markup_comment_text");
0
           $theme->load("content/comment", array("comment" => $comment));
0
           break;
0
         case "delete_comment":
0
@@ -712,13 +705,6 @@
0
           if (!in_array(when("m-d-Y", $comment->created_at), $shown_dates))
0
             $shown_dates[] = when("m-d-Y", $comment->created_at);
0
 
0
-          $group = ($comment->user_id and !$comment->user()->no_results) ?
0
-                   $comment->user()->group() :
0
-                   new Group(Config::current()->guest_group) ;
0
-          if (($comment->status != "pingback" and $comment->status != "trackback") and !$group->can("code_in_comments"))
0
-            $comment->body = strip_tags($comment->body, "<".join("><", $config->allowed_comment_html).">");
0
-
0
-          $trigger->filter($comment->body, "markup_comment_text");
0
           $comment->is_author = ($post->user_id == $comment->user_id);
0
         }
0
       }
...
25
26
27
28
29
30
31
32
33
34
35
36
...
25
26
27
 
 
 
 
 
 
28
29
30
0
@@ -25,12 +25,6 @@
0
   foreach ($comments as $comment) {
0
     $trigger->call("rss_comment", $comment->id);
0
 
0
-    $group = ($comment->user_id and !$comment->user()->no_results) ? $comment->user()->group() : new Group(Config::current()->guest_group) ;
0
-    if (($comment->status != "pingback" and $comment->status != "trackback") and !$group->can("code_in_comments"))
0
-      $comment->body = strip_tags($comment->body, "<".join("><", $config->allowed_comment_html).">");
0
-
0
-    $trigger->filter($comment->body, "markup_comment_text");
0
-
0
     $updated = ($comment->updated) ? $comment->updated_at : $comment->created_at ;
0
 
0
     $tagged = substr(strstr(url("id/".$comment->post()->id."/")."#comment_".$comment->id, "//"), 2);
...
374
375
376
377
378
 
 
 
 
379
380
381
 
 
382
 
383
384
 
385
386
387
...
374
375
376
 
 
377
378
379
380
381
 
 
382
383
384
385
386
 
387
388
389
390
0
@@ -374,14 +374,17 @@ ol.comments li cite a.permalink:link,
0
 ol.comments li cite a.permalink:visited {
0
   color: #666;
0
 }
0
-ol.comments ul {
0
-  padding: 0 0 1em;
0
+ol.comments li ul,
0
+ol.comments li ol {
0
+  margin: 0;
0
+  padding: 0 0 1em 1.5em;
0
 }
0
-ol.comments ol li,
0
-ol.comments ul li {
0
+ol.comments li ul li,
0
+ol.comments li ol li {
0
   margin: 0;
0
+  padding: 0;
0
 }
0
-ol.comments ol li {
0
+ol.comments li ol li {
0
   list-style-type: decimal;
0
 }
0
 

Comments