2heoh (2heoh) wrote in changelog,
2heoh
2heoh
changelog

[ljcom] r10230: LJM-1665: fixed friends filter

Committer: slobin
LJM-1665: fixed friends filter

M get_friends_page.pm
U   trunk/cgi-bin/LJ/SUP/RPC/Command/get_friends_page.pm
Modified: trunk/cgi-bin/LJ/SUP/RPC/Command/get_friends_page.pm
===================================================================
--- trunk/cgi-bin/LJ/SUP/RPC/Command/get_friends_page.pm	2011-03-14 05:57:32 UTC (rev 10229)
+++ trunk/cgi-bin/LJ/SUP/RPC/Command/get_friends_page.pm	2011-03-14 08:45:21 UTC (rev 10230)
@@ -9,7 +9,6 @@
 sub need_post           { 1 }
 
 sub process {
-
     my $self   = shift;
     my $params = $self->params;
 
@@ -48,12 +47,13 @@
 
     my @entries = ();
     my $used_filter;
+
     for my $filter (@filter) {
         my $filter_bit;
         if ($filter ne '') {
             my $group = LJ::get_friend_group($journalu, { 'name' => $filter });
             next unless $group; # try other group 
-            $filter_bit = 1 << $group->{'group0num'};
+            $filter_bit = 1 << $group->{'groupnum'};
         }
         $used_filter = $filter;
         @entries = LJ::get_friend_items({

Tags: 2heoh, ljcom, pm
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