Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[livejournal] r20278: LJSUP-9997: Need add function to ban in ...

Committer: amyshkin
LJSUP-9997: Need add function to ban in community only
U   trunk/htdocs/tools/endpoints/changerelation.bml
Modified: trunk/htdocs/tools/endpoints/changerelation.bml
===================================================================
--- trunk/htdocs/tools/endpoints/changerelation.bml	2011-10-11 07:41:30 UTC (rev 20277)
+++ trunk/htdocs/tools/endpoints/changerelation.bml	2011-10-11 07:51:08 UTC (rev 20278)
@@ -108,14 +108,17 @@
     } elsif ($action eq 'setUnban') {    
         my $unban_user = LJ::load_user($target);
         $success = $remote->unban_user_multi($unban_user->{userid});
-    
+
     } elsif ($action eq 'banEverywhere') {
 
         my $ban_user = LJ::load_user($target);
 
-        $cids = LJ::load_rel_target($remote, 'A'); # admined communities
-        my $us = LJ::load_userids(@$cids, $remote->userid); # all communities and remote personal account
+        # admined communities
+        $cids = LJ::load_rel_target($remote, 'A');
 
+        # all communities
+        my $us = LJ::load_userids(@$cids);
+
         my $ok = 1;
         $success = 1;
 

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