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-03-14 07:27 am

[dw-free] nav strip options for openID

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

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

Remove "join community" link for identity accounts

Patch by [staff profile] denise.

Files modified:
  • cgi-bin/weblib.pl
--------------------------------------------------------------------------------
diff -r f13da60d6ad3 -r 5f2d0c97da9a cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl	Sat Mar 14 07:07:22 2009 +0000
+++ b/cgi-bin/weblib.pl	Sat Mar 14 07:26:50 2009 +0000
@@ -3154,7 +3154,8 @@ sub control_strip
                 if ($haspostingaccess) {
                     $ret .= "$links{post_to_community}   ";
                 }
-                $ret .= "$links{join_community}   $links{unwatch_community}";
+                $ret .= "$links{join_community}   " unless $remote->is_identity;
+                $ret .= $links{unwatch_community};
             } elsif ($memberof) {
                 $ret .= "$statustext{member}<br />";
                 if ($haspostingaccess) {
@@ -3166,7 +3167,8 @@ sub control_strip
                 if ($haspostingaccess) {
                     $ret .= "$links{post_to_community}&nbsp;&nbsp; ";
                 }
-                $ret .= "$links{join_community}&nbsp;&nbsp; $links{watch_community}";
+                $ret .= "$links{join_community}&nbsp;&nbsp; " unless $remote->is_identity;
+                $ret .= $links{watch_community};
             }
         } elsif ($journal->is_syndicated) {
             $ret .= "$statustext{syn}<br />";
--------------------------------------------------------------------------------