--- App.pm-old 2008-08-09 15:04:33.000000000 +0200 +++ App.pm 2008-09-19 17:54:01.600857000 +0200 @@ -1125,7 +1125,7 @@ ( my $sessobj, $commenter ) = $app->get_commenter_session(); if ( $sessobj && $commenter ) { my $blog_perms = $commenter->blog_perm($blog_id); - my $banned = $commenter->is_banned($blog_id) ? "1" : "0"; + my $banned = $commenter->is_banned($blog_id) ? 1 : 0; $banned = 0 if $blog_perms && $blog_perms->can_administer; $banned ||= 1 if $commenter->status == MT::Author::BANNED(); @@ -1144,7 +1144,7 @@ unless $blog->allow_unreg_comments || $blog->allow_reg_comments; my $can_post - = ( $blog_perms && $blog_perms->can_create_post ) ? "1" : "0"; + = ( $blog_perms && $blog_perms->can_create_post ) ? 1 : 0; $c = { sid => $sessobj->id, name => $commenter->nickname, @@ -1152,12 +1152,12 @@ email => $commenter->email, userpic => scalar $commenter->userpic_url, profile => "", # profile link url - is_authenticated => "1", + is_authenticated => 1, is_trusted => - ( $commenter->is_trusted($blog_id) ? "1" : "0" ), + ( $commenter->is_trusted($blog_id) ? 1 : 0 ), is_author => - ( $commenter->type == MT::Author::AUTHOR() ? "1" : "0" ), - is_anonymous => "0", + ( $commenter->type == MT::Author::AUTHOR() ? 1 : 0 ), + is_anonymous => 0, is_banned => $banned, can_comment => $can_comment, can_post => $can_post, @@ -1166,14 +1166,14 @@ } unless ($c) { - my $can_comment = $blog && $blog->allow_anon_comments ? "1" : "0"; + my $can_comment = $blog && $blog->allow_anon_comments ? 1 : 0; $c = { - is_authenticated => "0", - is_trusted => "0", - is_anonymous => "1", - can_post => "0", # no anonymous posts + is_authenticated => 0, + is_trusted => 0, + is_anonymous => 1, + can_post => 0, # no anonymous posts can_comment => $can_comment, - is_banned => "0", + is_banned => 0, }; }