Committer: vad
LJSUP-9015: Bug with link "Add to friend" in Minimalism.U trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm =================================================================== --- trunk/cgi-bin/LJ/S2.pm 2011-06-07 06:47:56 UTC (rev 19244) +++ trunk/cgi-bin/LJ/S2.pm 2011-06-07 07:33:30 UTC (rev 19245) @@ -3675,7 +3675,7 @@ return LJ::S2::Link($_[0], $_[1], LJ::S2::Image("$LJ::IMGPREFIX/$_[2]", 24, 24)); }; - if ($key eq 'add_friend' && defined($remote)) { + if ($key eq 'add_friend' && defined($remote) && ! LJ::is_friend($remote, $u)) { return $button->("$LJ::SITEROOT/friends/add.bml?user=$user", "Add $user to friends list", "btn_addfriend.gif"); } if ($key eq 'post_entry') {