Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r16207: LJSV-933 (after ESN refactor part 1, not...

Committer: ailyin
LJSV-933 (after ESN refactor part 1, notifications of anonymous comments ceased to be sent): add error checking

U   trunk/cgi-bin/LJ/Event/JournalNewComment.pm
Modified: trunk/cgi-bin/LJ/Event/JournalNewComment.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/JournalNewComment.pm	2010-02-05 06:16:04 UTC (rev 16206)
+++ trunk/cgi-bin/LJ/Event/JournalNewComment.pm	2010-02-05 06:53:39 UTC (rev 16207)
@@ -684,6 +684,7 @@
 
     # own comments are deliberately sent to email only
     if (
+        $comment_author &&
         $comment_author->prop('opt_getselfemail') &&
         $comment_author->get_cap('getselfemail') &&
         $acquire_sub_slot->()
@@ -698,7 +699,7 @@
     # send a notification to the author of the "parent" comment, if they
     # want to get it
     if (
-        $parent_comment &&
+        $parent_comment && $parent_comment_author &&
 
         # if they are responding to themselves and wish to get that, we've
         # already handled it above

Tags: andy, livejournal, pm
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments