Use member list.

        Patch by kareila. 

diffs (13 lines):

diff -r 1f0837f38a6a -r 06ffc6b6f562 cgi-bin/DW/User/Edges/WatchTrust.pm
--- a/cgi-bin/DW/User/Edges/WatchTrust.pm       Sat Jun 06 04:34:38 2009 +0000
+++ b/cgi-bin/DW/User/Edges/WatchTrust.pm       Sat Jun 06 16:36:27 2009 +0000
@@ -353,7 +353,8 @@ sub get_birthdays {
     # we cached the sorted data, don't need to re-sort
     return @$cached_bdays if $cached_bdays;
 
-    my $nb = LJ::User->next_birthdays( $u->circle_userids );
+    my @circle = $u->is_community ? $u->member_userids : $u->circle_userids;
+    my $nb = LJ::User->next_birthdays( @circle );
     # returns ref to hash of form (userid => date)
     my $uids = LJ::load_userids( keys %$nb );
     # returns ref to hash of form (userid => user object)
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to