mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Move Contact::ACCOUNT_TYPE_* constants to User::ACCOUNT_TYPE_*
- Keep Contact::TYPE_* constants for comparison with contact.contact-type
This commit is contained in:
parent
ad9c67663d
commit
3d839bb176
12 changed files with 79 additions and 44 deletions
|
@ -2878,7 +2878,7 @@ class DFRN
|
|||
DBA::update('contact', ['contact-type' => $accounttype], ['uid' => 0, 'nurl' => $importer['nurl']]);
|
||||
}
|
||||
// A forum contact can either have set "forum" or "prv" - but not both
|
||||
if ($accounttype == Contact::ACCOUNT_TYPE_COMMUNITY) {
|
||||
if ($accounttype == User::ACCOUNT_TYPE_COMMUNITY) {
|
||||
// It's a forum, so either set the public or private forum flag
|
||||
$condition = ['(`forum` != ? OR `prv` != ?) AND `id` = ?', $forum, !$forum, $importer['id']];
|
||||
DBA::update('contact', ['forum' => $forum, 'prv' => !$forum], $condition);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue