mirror of
https://github.com/friendica/friendica
synced 2025-04-26 02:30:11 +00:00
Use the "contact-type" instead of "forum" or "prv"
This commit is contained in:
parent
b857c26999
commit
9a764516d0
12 changed files with 24 additions and 38 deletions
|
@ -55,6 +55,7 @@ use Friendica\Model\Notification;
|
|||
use Friendica\Model\Photo;
|
||||
use Friendica\Model\Post;
|
||||
use Friendica\Model\Profile;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Security\PermissionSet\Repository\PermissionSet;
|
||||
use Friendica\Worker\Delivery;
|
||||
|
||||
|
@ -1087,3 +1088,11 @@ function update_1446()
|
|||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
function update_1451()
|
||||
{
|
||||
DBA::update('user', ['account-type' => User::ACCOUNT_TYPE_COMMUNITY], ['page-flags' => [User::PAGE_FLAGS_COMMUNITY, User::PAGE_FLAGS_PRVGROUP]]);
|
||||
DBA::update('contact', ['contact-type' => Contact::TYPE_COMMUNITY], ["`forum` OR `prv`"]);
|
||||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue