madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21367: LJSUP-10102: User don't receive notifica...

Committer: sbelyaev
LJSUP-10102: User don't receive notification when user is removed from community
U   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;

Tags: livejournal, madeon, pm, sbelyaev
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