arteman (arteman) wrote in changelog,
arteman
arteman
changelog

[livejournal] r23540: https://jira.sup.com/browse/LJSV-2568

Committer: azateev
https://jira.sup.com/browse/LJSV-2568
U   branches/esn-support/cgi-bin/LJ/ESN.pm
Modified: branches/esn-support/cgi-bin/LJ/ESN.pm
===================================================================
--- branches/esn-support/cgi-bin/LJ/ESN.pm	2013-01-14 14:55:18 UTC (rev 23539)
+++ branches/esn-support/cgi-bin/LJ/ESN.pm	2013-01-14 15:54:37 UTC (rev 23540)
@@ -553,7 +553,8 @@
     return $job->completed unless $subsc;
 
     # if the user deleted their account (or otherwise isn't visible), bail
-    return $job->completed unless $u->is_visible || $evt->is_significant;
+    # but email unauthorised recipients
+    return $job->completed if $u && !($u->is_visible || $evt->is_significant);
 
     my %opts;
     if ($LJ::DEBUG{esn_email_headers}) {

Tags: arteman, azateev, 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