Fix network view (the view formerly known as friendsfriends)

        Patch by kareila. 

diffs (24 lines):

diff -r 0cc6a2936852 -r bbd6f2efb159 cgi-bin/DW/Logic/LogItems.pm
--- a/cgi-bin/DW/Logic/LogItems.pm      Wed Jun 10 13:22:03 2009 +0000
+++ b/cgi-bin/DW/Logic/LogItems.pm      Wed Jun 10 14:40:29 2009 +0000
@@ -173,9 +173,7 @@ sub watch_items
         return undef if $fr_loaded;
 
         # get journal's friends
-        my $friends = LJ::get_friends($userid) || {};
-        return undef unless %$friends;
-
+        my $friends = $u->watch_list;
         my %friends_u;
 
         # fill %allfriends with all friendids and cut $friends
@@ -200,7 +198,8 @@ sub watch_items
         my %ffriends = ();
         foreach my $fid (sort { $f_tu->{$b} <=> $f_tu->{$a} } keys %$friends) {
             last if $ffct > 50;
-            my $ff = LJ::get_friends($fid, undef, "memcache_only") || {};
+            my $fu = $friends_u{$fid};
+            my $ff = $fu->watch_list( community_okay => 1, memcache_only => 1 
);
             my $ct = 0;
             while (my $ffid = each %$ff) {
                 last if $ct > 100;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to