wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r18270: LJSUP-7886. Remove check for oldest main...

Committer: gprochaev
LJSUP-7886. Remove check for oldest maintainer of community.

U   trunk/bin/misc/set_comm_supermaintainer.pl
Modified: trunk/bin/misc/set_comm_supermaintainer.pl
===================================================================
--- trunk/bin/misc/set_comm_supermaintainer.pl	2011-02-10 13:43:46 UTC (rev 18269)
+++ trunk/bin/misc/set_comm_supermaintainer.pl	2011-02-11 04:11:59 UTC (rev 18270)
@@ -271,33 +271,11 @@
             _log "\tuser ($u->{user}) is the person who created the community\n";
             return $u;
         }
-    } else {
-        _log "No 'account_create' record. Start the election.\n";
-        return undef;
     }
 
-    _log "Record 'account_create' found. Try to find the oldest active maintainer\n";
-
-    $sth->execute($comm->{userid}, 'maintainer_add');
-    while (my $row = $sth->fetchrow_hashref) {
-        my $u_id = $row->{'actiontarget'};
-        my $u = LJ::load_userid ($u_id);
-        if (!$u) {
-            _log "\t\tCan't load maintainer ($u_id)\n";
-        } elsif (!$u->is_visible) {
-            _log "\t\tuser ($u->{user}) is not visible\n";
-        } elsif (!$u->can_manage($comm)) {
-            _log "\t\tuser ($u->{user}) can not manage community\n";
-        } elsif (!$u->check_activity(90)) {
-            _log "\t\tuser ($u->{user}) is not active at last 90 days\n";
-        } else {
-            _log "\tuser ($u->{'user'}) is the oldest active maintainer in the community\n";
-            return $u;
-        }
-    }
-
-    _log "Can't find active maintainer\n";
+    _log "No 'account_create' record. Start the election.\n";
     return undef;
+
 }
 
 

Tags: livejournal, pl, wisest-owl
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