mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 01:25:21 +02:00
"Contact\User" class created
This commit is contained in:
parent
afa9adda6e
commit
a7d75702cc
9 changed files with 330 additions and 299 deletions
|
@ -376,8 +376,8 @@ function update_1327()
|
|||
{
|
||||
$contacts = DBA::select('contact', ['uid', 'id', 'blocked', 'readonly'], ["`uid` != ? AND (`blocked` OR `readonly`) AND NOT `pending`", 0]);
|
||||
while ($contact = DBA::fetch($contacts)) {
|
||||
Contact::setBlockedForUser($contact['id'], $contact['uid'], $contact['blocked']);
|
||||
Contact::setIgnoredForUser($contact['id'], $contact['uid'], $contact['readonly']);
|
||||
Contact\User::setBlocked($contact['id'], $contact['uid'], $contact['blocked']);
|
||||
Contact\User::setIgnored($contact['id'], $contact['uid'], $contact['readonly']);
|
||||
}
|
||||
DBA::close($contacts);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue