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-04-08 04:34 pm

[dw-free] 'post' link on nav strip for openID

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

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

Don't show post and journal links to OpenID users

Patch by [staff profile] denise.

Files modified:
  • cgi-bin/weblib.pl
--------------------------------------------------------------------------------
diff -r 4583d743243b -r 120d075309a5 cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl	Wed Apr 08 16:16:29 2009 +0000
+++ b/cgi-bin/weblib.pl	Wed Apr 08 16:34:00 2009 +0000
@@ -3037,7 +3037,8 @@ sub control_strip
         $ret .= "$remote_display $logout";
         $ret .= "   $links{confirm}" unless $remote->is_validated;
         $ret .= "</div></form>\n";
-        $ret .= "$links{'home'}&nbsp;&nbsp; $links{'post_journal'}&nbsp;&nbsp; $links{'view_friends_page'}&nbsp;&nbsp;$links{'inbox'}";
+        $ret .= "$links{home}&nbsp;&nbsp; $links{post_journal}&nbsp;&nbsp;" unless $remote->is_identity;
+        $ret .= "$links{view_friends_page}&nbsp;&nbsp;$links{inbox}";
         $ret .= "</td>\n";
 
         $ret .= "<td id='lj_controlstrip_actionlinks' nowrap='nowrap'>";
@@ -3140,7 +3141,7 @@ sub control_strip
             if (LJ::can_manage_other($remote, $journal)) {
                 $ret .= "$statustext{maintainer}<br />";
                 if ($haspostingaccess) {
-                    $ret .= "$links{post_to_community}&nbsp;&nbsp; ";
+                    $ret .= "$links{post_to_community}&nbsp;&nbsp; " unless $remote->is_identity;
                 }
                 $ret .= "$links{edit_community_profile}&nbsp;&nbsp; $links{edit_community_invites}&nbsp;&nbsp; $links{edit_community_members}";
             } elsif ($watching && $memberof) {
--------------------------------------------------------------------------------