Don't notify about deleted journals, nor show on the birthday lists.

        Patch by kareila. 

diffs (18 lines):

diff -r 891879298ff0 -r e9890bfa3316 cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm        Wed Oct 13 13:27:24 2010 +0800
+++ b/cgi-bin/LJ/User.pm        Thu Oct 14 11:29:27 2010 +0800
@@ -3523,12 +3523,13 @@ sub can_join_adult_comm {
 
 # Birthday logic -- should a notification be sent?
 # Currently the same logic as can_show_bday with an exception for
-# journals that have memorial status.
+# journals that have memorial or deleted status.
 sub can_notify_bday {
     my ( $u, %opts ) = @_;
     croak "invalid user object passed" unless LJ::isu( $u );
 
     return 0 if $u->is_memorial;
+    return 0 if $u->is_deleted;
 
     return $u->can_show_bday( %opts );
 }
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to