[dw-free] birthdays.bml doesn't work on communities
[commit: http://hg.dwscoalition.org/dw-free/rev/06ffc6b6f562]
http://bugs.dwscoalition.org/show_bug.cgi?id=1274
Use member list.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1274
Use member list.
Patch by
Files modified:
- cgi-bin/DW/User/Edges/WatchTrust.pm
--------------------------------------------------------------------------------
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)
--------------------------------------------------------------------------------
