fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-11-01 06:25 am

[dw-free] Revamp /update

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

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

Inactive icons shouldn't show up in the icon browser, no they shouldn't.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/DW/Controller/Entry.pm
--------------------------------------------------------------------------------
diff -r be4bbe0f9d6e -r 64583ddf5992 cgi-bin/DW/Controller/Entry.pm
--- a/cgi-bin/DW/Controller/Entry.pm	Tue Nov 01 13:48:33 2011 +0800
+++ b/cgi-bin/DW/Controller/Entry.pm	Tue Nov 01 14:21:32 2011 +0800
@@ -276,7 +276,7 @@
 
 
         # icons
-        @icons = LJ::Userpic->load_user_userpics( $u );
+        @icons = grep { ! ( $_->inactive || $_->expunged ) } LJ::Userpic->load_user_userpics( $u );
         @icons = LJ::Userpic->separate_keywords( \@icons )
             if @icons;
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org