afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2010-01-02 03:27 am

[dw-free] Ban page should accept OpenID url account name as account to ban

[commit: http://hg.dwscoalition.org/dw-free/rev/eab3a4c6e042]

http://bugs.dwscoalition.org/show_bug.cgi?id=2176

Make OpenID users bannable by URL, so we no longer need to hunt down the
ext_123 form of their names.

Patch by [personal profile] foxfirefey.

Files modified:
  • htdocs/manage/banusers.bml
--------------------------------------------------------------------------------
diff -r e40ce51049ae -r eab3a4c6e042 htdocs/manage/banusers.bml
--- a/htdocs/manage/banusers.bml	Sat Jan 02 03:17:33 2010 +0000
+++ b/htdocs/manage/banusers.bml	Sat Jan 02 03:27:19 2010 +0000
@@ -50,7 +50,7 @@ body<=
             my @banlist_orig = split(/,/, $POST{ban_list});
             my @banlist;
             foreach my $banusername (@banlist_orig) {
-                my $banu = LJ::load_user($banusername);
+                my $banu = LJ::load_user_or_identity($banusername);
                 push @banlist, $banu->id if $banu;
             }
 
--------------------------------------------------------------------------------