madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20998: LJSUP-10102: sending notification: user ...

Committer: sbelyaev
LJSUP-10102: sending notification: user with scheduled entries was removed from community
U   trunk/htdocs/community/members.bml
Modified: trunk/htdocs/community/members.bml
===================================================================
--- trunk/htdocs/community/members.bml	2012-01-25 14:18:01 UTC (rev 20997)
+++ trunk/htdocs/community/members.bml	2012-01-25 14:24:47 UTC (rev 20998)
@@ -373,16 +373,16 @@
         }
 
         # get all the users who were removed
-        my $changedusers = LJ::load_userids(keys %{$delete{'member'}});
+        my $changedusers = LJ::load_userids(keys %{$delete{'post'}});
         # delete members
         if (%{$delete{'post'}}) {
             # TAG:FR:bml_comm_members:del_members
-            for my $uid (keys %{$delete{'member'} || {} }) {
+            for my $uid (keys %{$delete{'post'}}) {
                 my $delu = $changedusers->{$uid};
 
                 next unless $delu;
                 next unless LJ::DelayedEntry::entries_exists($c, $delu);
-                next if LJ::DelayedEntry::can_post_to($c, $delu);
+                next if  LJ::DelayedEntry::can_post_to($c, $delu);
 
                 my $mailusername = $delu->{user};
                 my $mailusercname = $c->{name};
@@ -415,7 +415,6 @@
 
                 $sendmail->($delu, $html, $plain, $subject); 
             } 
-            LJ::remove_friend($cid, [ keys %{$delete{'member'}} ]);
         }
 
         # get all the maintainers who were removed

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