[dw-free] Purged journals still shown as options when trying to recover lost usernames
[commit: http://hg.dwscoalition.org/dw-free/rev/55f58f915b56]
http://bugs.dwscoalition.org/show_bug.cgi?id=4161
Clarify logic.
Patch by
yvi.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=4161
Clarify logic.
Patch by
Files modified:
- htdocs/lostinfo.bml
--------------------------------------------------------------------------------
diff -r d5aef9031a91 -r 55f58f915b56 htdocs/lostinfo.bml
--- a/htdocs/lostinfo.bml Fri Jan 06 22:07:48 2012 +0800
+++ b/htdocs/lostinfo.bml Fri Jan 06 22:40:57 2012 +0800
@@ -186,7 +186,7 @@
my @users;
foreach my $uid ( LJ::User->accounts_by_email( $email ) ) {
my $u = LJ::load_userid($uid);
- next unless $u && $u->{clusterid}; # not purged
+ next if !$u || $u->is_expunged; # not purged
# As the idea is to limit spam to one e-mail address, if any of their username's are
# over the limit, then don't send them any more e-mail.
--------------------------------------------------------------------------------
