Merge remote-tracking branch 'upstream/2021.06-rc' into profile-publish

This commit is contained in:
Michael 2021-06-16 05:01:16 +00:00
commit 1ced04e54c
8 changed files with 168 additions and 137 deletions

View file

@ -391,7 +391,12 @@ class User
if (!DBA::exists('user', ['uid' => $uid]) || !$repairMissing) {
return false;
}
Contact::createSelfFromUserId($uid);
if (!DBA::exists('profile', ['uid' => $uid])) {
DBA::insert('profile', ['uid' => $uid]);
}
if (!DBA::exists('contact', ['uid' => $uid, 'self' => true])) {
Contact::createSelfFromUserId($uid);
}
$owner = self::getOwnerDataById($uid, false);
}