Blocked users need to be blocked
This commit is contained in:
parent
eb2a8e47b0
commit
b61cfd193f
5 changed files with 21 additions and 7 deletions
11
update.php
11
update.php
|
@ -1466,4 +1466,15 @@ function update_1560()
|
|||
SELECT `id`, `uri-id`, `uid`, `parent-uri-id`, `thr-parent-id`, `created`, `received`, `gravity`, `vid`, `private`, `wall` FROM `post-user` WHERE `post-user`.`origin` AND `post-user`.`uid` != ?", 0)) {
|
||||
return Update::FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
function update_1564()
|
||||
{
|
||||
$users = DBA::select('user', ['uid'], ['blocked' => true]);
|
||||
while ($user = DBA::fetch($users)) {
|
||||
User::block($user['uid']);
|
||||
}
|
||||
DBA::close($users);
|
||||
|
||||
return Update::SUCCESS;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue