Skip to content

Commit

Permalink
Force reading comments from master DB after moderating.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiemccarthy committed Jan 31, 2003
1 parent c5ea9d8 commit 1121d0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions themes/slashcode/htdocs/comments.pl
Expand Up @@ -1140,7 +1140,7 @@ sub submitComment {
slashDisplay('comment_submit') if ! $form->{newdiscussion};
undoModeration($id);
printComments($discussion, $maxCid, $maxCid,
{ force_read_from_master => 1}
{ force_read_from_master => 1 }
) if !$form->{newdiscussion};

my $tc = $slashdb->getVar('totalComments', 'value', 1);
Expand Down Expand Up @@ -1332,7 +1332,8 @@ sub moderate {
comment_count => $slashdb->countCommentsBySid($sid),
});
}
printComments($discussion, $form->{pid}, $form->{cid});
printComments($discussion, $form->{pid}, $form->{cid},
{ force_read_from_master => 1 } );

if ($was_touched) {
# This is for stories. If a sid is only a number
Expand Down

0 comments on commit 1121d0f

Please sign in to comment.