Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Mar 21, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions bin/upgrading/s2layers/core2.s2
Expand Up @@ -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""";
}
}
}

Expand Down