fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-09-30 03:49 am

[dw-free] Hiding of community membership on profile page follows "hide circled by", not &q

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

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

Completely separate the two options (bugfix -- thanks [personal profile] kareila)

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/DW/Logic/ProfilePage.pm
--------------------------------------------------------------------------------
diff -r 534864c3f093 -r 8664015de23e cgi-bin/DW/Logic/ProfilePage.pm
--- a/cgi-bin/DW/Logic/ProfilePage.pm	Fri Sep 30 10:29:14 2011 +0800
+++ b/cgi-bin/DW/Logic/ProfilePage.pm	Fri Sep 30 11:49:38 2011 +0800
@@ -899,7 +899,9 @@
     my $remote = $self->{remote};
 
     return 1 if $list =~ /^posting_access/;
-    return 1 if $list =~ /of_comms$/ && $u->prop( 'opt_hidememberofs' );
+
+    return $u->prop( 'opt_hidememberofs' ) if $list =~ /of_comms$/;
+
     return 1 if $u->prop( 'opt_hidefriendofs' );
     return 0;
 }
--------------------------------------------------------------------------------