mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 11:14:32 +02:00
Issue 14231: Automatically add the relay owner as contact person
This commit is contained in:
parent
eb6297c472
commit
a27d55f6cf
7 changed files with 341 additions and 271 deletions
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue