madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20985: LJSV-2031: Some community owners cannot ...

Committer: sbelyaev
LJSV-2031: Some community owners cannot remove members from the comm
U   trunk/htdocs/community/members.bml
Modified: trunk/htdocs/community/members.bml
===================================================================
--- trunk/htdocs/community/members.bml	2012-01-25 10:51:44 UTC (rev 20984)
+++ trunk/htdocs/community/members.bml	2012-01-25 11:15:57 UTC (rev 20985)
@@ -358,7 +358,7 @@
                                             'Type'    => 'text/plain',
                                             'Data'    => $plain
                                         );
-                    
+
                     $msg->attr("content-type.charset" => $encoding);
                 }
 
@@ -366,6 +366,12 @@
             }
         };
 
+        # delete members
+        if (%{$delete{'member'}}) {
+            # TAG:FR:bml_comm_members:del_members
+            LJ::remove_friend($cid, [ keys %{$delete{'member'}} ]);
+        }
+
         # get all the users who were removed
         my $changedusers = LJ::load_userids(keys %{$delete{'member'}});
         # delete members
@@ -403,7 +409,6 @@
                                     siteroot        => $LJ::SITEROOT,
                                 });
 
-
                 my $subject = LJ::Lang::get_text($lang, 'community.members.delayed.remove.email_subject', undef,
                                 { mailusercname => $mailusercname }
                                 );

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