[dw-free] Expose ext_### username on OpenID spamreports to make suspension easier
[commit: http://hg.dwscoalition.org/dw-free/rev/a6c7c517436a]
http://bugs.dwscoalition.org/show_bug.cgi?id=4175
Display ext_NNN username for openid spammers on admin spam pages.
Patch by
denise.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=4175
Display ext_NNN username for openid spammers on admin spam pages.
Patch by
Files modified:
- htdocs/admin/spamreports.bml
--------------------------------------------------------------------------------
diff -r b5bd797a7d28 -r a6c7c517436a htdocs/admin/spamreports.bml
--- a/htdocs/admin/spamreports.bml Tue Jan 10 18:39:19 2012 +0800
+++ b/htdocs/admin/spamreports.bml Tue Jan 10 19:35:31 2012 +0800
@@ -178,11 +178,14 @@
$what += 0;
my $u = LJ::load_userid($what);
return $error->('No such posterid.') unless $u;
- $title = "Spam Reports - By " . $u->ljuser_display . "($state)";
+ $title = "Spam Reports - By " . $u->ljuser_display;
+ $title .= " (" . $u->{user} . ")" if $u->is_identity;
+ $title .= " ($state)";
} elsif ($by eq 'poster') {
my $u = LJ::load_user($what);
return $error->('No such user.') unless $u;
$title = "Spam Reports - Comments By " . $u->ljuser_display;
+ $title .= " (" . $u->{user} . ")" if $u->is_identity;
# Now just pretend that user used 'posterid'
$by = 'posterid';
--------------------------------------------------------------------------------

no subject