Первый фоллен на хелле (wildkin) wrote in changelog,
Первый фоллен на хелле
wildkin
changelog

[livejournal] r19165: LJSUP-8896: Button "Select tags" shouldn...

Committer: dnikolaev
LJSUP-8896: Button "Select tags" shouldn't appear if the user wants to add as a friend identity account

U   trunk/htdocs/friends/edit.bml
Modified: trunk/htdocs/friends/edit.bml
===================================================================
--- trunk/htdocs/friends/edit.bml	2011-05-30 06:18:45 UTC (rev 19164)
+++ trunk/htdocs/friends/edit.bml	2011-05-30 06:29:38 UTC (rev 19165)
@@ -222,7 +222,7 @@
                 
                 $ret .= "<td style='text-align: left;'>";
                 my ($friend_tags_mode, $friend_tags_list) = $friends_tags->get_tags($who_u->{userid});
-                if ($friends{$who} && $friends{$who}->{rel} ne 'FO') {
+                if ($friends{$who} && $friends{$who}->{rel} ne 'FO' && !$who_u->is_identity()) {
                     if ($friend_tags_list && ref($friend_tags_list) eq 'ARRAY' && scalar(@$friend_tags_list) > 0) {
                         my $friend_tags_str = LJ::FriendsTags->is_allow_mode($friend_tags_mode) ?
                                                   LJ::ehtml(join(', ', @$friend_tags_list)) :

Tags: bml, livejournal, wildkin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments