mirror of
https://github.com/friendica/friendica
synced 2024-11-19 07:03:40 +00:00
Add a profile entry if missing
This commit is contained in:
parent
6a517b4130
commit
e994d02791
1 changed files with 6 additions and 1 deletions
|
@ -391,7 +391,12 @@ class User
|
|||
if (!DBA::exists('user', ['uid' => $uid]) || !$repairMissing) {
|
||||
return false;
|
||||
}
|
||||
if (!DBA::exists('contact', ['uid' => $uid, 'self' => true])) {
|
||||
Contact::createSelfFromUserId($uid);
|
||||
}
|
||||
if (!DBA::exists('profile', ['uid' => $uid])) {
|
||||
DBA::insert('profile', ['uid' => $uid]);
|
||||
}
|
||||
$owner = self::getOwnerDataById($uid, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue