Issue 14231: Automatically add the relay owner as contact person

This commit is contained in:
Michael 2024-06-16 17:04:43 +00:00
parent eb6297c472
commit a27d55f6cf
7 changed files with 341 additions and 271 deletions

View file

@ -1477,4 +1477,13 @@ function update_1564()
DBA::close($users);
return Update::SUCCESS;
}
function update_1566()
{
$users = DBA::select('user', ['uid'], ["`account-type` = ? AND `verified` AND NOT `blocked` AND NOT `account_removed` AND NOT `account_expired` AND `uid` > ?", User::ACCOUNT_TYPE_RELAY, 0]);
while ($user = DBA::fetch($users)) {
Profile::setResponsibleRelayContact($user['uid']);
}
DBA::close($users);
}