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] changelog2009-08-30 03:20 pm

[dw-free] clean up cgi-bin/LJ/User.pm

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

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

Let LJ::want_userid accept user hash as well as user object.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
diff -r 976ee6d1f760 -r 962618fe6ea5 cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm	Sun Aug 30 15:06:26 2009 +0000
+++ b/cgi-bin/LJ/User.pm	Sun Aug 30 15:20:26 2009 +0000
@@ -5450,7 +5450,7 @@ sub want_userid
 sub want_userid
 {
     my $uuserid = shift;
-    return ($uuserid->userid + 0) if ref $uuserid;
+    return ($uuserid->{userid} + 0) if ref $uuserid;
     return ($uuserid + 0);
 }
 
--------------------------------------------------------------------------------