Committer: sbelyaev
LJSUP-10102: User don't receive notification when user is removed from communityU trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm
Modified: trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm =================================================================== --- trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm 2012-03-12 12:25:18 UTC (rev 21366) +++ trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm 2012-03-12 12:35:51 UTC (rev 21367) @@ -121,7 +121,7 @@ 'charset' => 'utf-8', 'subject' => $subject, 'body' => $text, - { subject => $subject }, + { subject => $subject, reason => $subject, }, }); } @@ -139,8 +139,8 @@ eval { while ( my $entries = __load_delayed_entries($dbh) ) { foreach my $entry (@$entries) { - if (!LJ::DelayedEntry::can_post_to($entry->poster, - $entry->journal)) { + if (!LJ::DelayedEntry::can_post_to($entry->journal, + $entry->poster)) { if ($verbose) { print "The entry with subject " . $entry->subject;