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

[livejournal] r19138: LJSUP-8887: I can see private tags of ot...

Committer: dnikolaev
LJSUP-8887: I can see private tags of other users when I add users in friends

U   trunk/htdocs/friends/add.bml
Modified: trunk/htdocs/friends/add.bml
===================================================================
--- trunk/htdocs/friends/add.bml	2011-05-26 07:44:57 UTC (rev 19137)
+++ trunk/htdocs/friends/add.bml	2011-05-26 08:13:17 UTC (rev 19138)
@@ -260,7 +260,7 @@
      return Encode::encode('utf-8', lc(Encode::decode('utf-8', $s)));
  };
 
- my $user_tags_map = $u->tags || {};
+ my $user_tags_map = LJ::Tags::get_usertags($u, { remote => $remote }) || {};
  $user_tags_map = {
      map {
          $to_lower_case->($_->{name}) => (
@@ -269,6 +269,7 @@
                  ($_->{uses} > 999 ? '999+' : $_->{uses})
          )
      }
+     grep { $_->{display} }
      values %$user_tags_map
  };
 

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