Merge branch 'master' of gitorious.org:statusnet/mainline into testing
This commit is contained in:
commit
edd883d3b0
|
@ -548,7 +548,10 @@ class User extends Memcached_DataObject
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Subscription::cancel($other, $this->getProfile());
|
$self = $this->getProfile();
|
||||||
|
if (Subscription::exists($other, $self)) {
|
||||||
|
Subscription::cancel($other, $self);
|
||||||
|
}
|
||||||
|
|
||||||
$block->query('COMMIT');
|
$block->query('COMMIT');
|
||||||
|
|
||||||
|
|
|
@ -49,9 +49,13 @@ class DelUserQueueHandler extends QueueHandler
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$user->hasRole(Profile_role::DELETED)) {
|
try {
|
||||||
common_log(LOG_INFO, "User {$user->nickname} is not pending deletion; aborting.");
|
if (!$user->hasRole(Profile_role::DELETED)) {
|
||||||
return true;
|
common_log(LOG_INFO, "User {$user->nickname} is not pending deletion; aborting.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
} catch (UserNoProfileException $unp) {
|
||||||
|
common_log(LOG_INFO, "Deleting user {$user->nickname} with no profile... probably a good idea!");
|
||||||
}
|
}
|
||||||
|
|
||||||
$notice = $this->getNextBatch($user);
|
$notice = $this->getNextBatch($user);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user