Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 4633 - Deleted comments appear as '(anonymous)' on Page Summary

http://bugs.dwscoalition.org/show_bug.cgi?id=4633
-- Don't display hidden comments in page summary
  • Loading branch information...
commit 28a64f2b7d8bc82b2e994bfa41116bd7115172e4 1 parent 68f1cf5
@ninetyd ninetyd authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 bin/upgrading/s2layers/core2.s2
View
12 bin/upgrading/s2layers/core2.s2
@@ -4216,12 +4216,12 @@ function print_module_pagesummary() {
if ( $p isa EntryPage ) {
var EntryPage cp = $p as EntryPage;
foreach var Comment c ( $cp.comments ) {
- var int count = print_module_pagesummary_comment_count($c);
- var string comment_display =
- print_module_pagesummary_comments($c.subject, $count, "text_read_comments_threads", "");
- var string poster = isnull $c.poster ? $*text_poster_anonymous : $c.poster->ljuser();
-
- $links[size $links] = """<span class="pagesummary-poster">$poster</span> - <span class="pagesummary-subject"><a href="#$c.anchor" $comment_display""";
+ if (not $c.deleted and not $c.fromsuspended and not $c.screened_noshow) {
+ var int count = print_module_pagesummary_comment_count($c);
+ var string comment_display = print_module_pagesummary_comments($c.subject, $count, "text_read_comments_threads", "");
+ var string poster = isnull $c.poster ? $*text_poster_anonymous : $c.poster->ljuser();
+ $links[size $links] = """<span class="pagesummary-poster">$poster</span> - <span class="pagesummary-subject"><a href="#$c.anchor" $comment_display""";
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.