Committer: sbelyaev
LJSUP-14824: Stop sending notification about birthdayU trunk/cgi-bin/LJ/Event/Birthday.pm
Modified: trunk/cgi-bin/LJ/Event/Birthday.pm =================================================================== --- trunk/cgi-bin/LJ/Event/Birthday.pm 2013-01-16 08:59:57 UTC (rev 23547) +++ trunk/cgi-bin/LJ/Event/Birthday.pm 2013-01-16 12:16:26 UTC (rev 23548) @@ -48,6 +48,10 @@ sub matches_filter { my ($self, $subscr) = @_; + if (!$subscr->owner || $self->userid == $subscr->owner->userid) { + return 0; + } + return $self->bdayuser->can_show_bday(to => $subscr->owner) ? 1 : 0; }