fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2012-01-06 02:40 pm

[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 [personal profile] yvi.

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.
--------------------------------------------------------------------------------