Committer: azateev
https://jira.sup.com/browse/LJSV-2568U 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}) {