mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 17:14:26 +02:00
Fix errors from #14578
This commit is contained in:
parent
97605498a6
commit
9867bdfcff
2 changed files with 23 additions and 24 deletions
|
@ -174,27 +174,24 @@ class Actor
|
|||
return $contact;
|
||||
}
|
||||
|
||||
if (empty($contact)) {
|
||||
$fields = [
|
||||
'uid' => $contact_uid,
|
||||
'network' => Protocol::BLUESKY,
|
||||
'priority' => 1,
|
||||
'writable' => true,
|
||||
'blocked' => false,
|
||||
'readonly' => false,
|
||||
'pending' => false,
|
||||
'url' => $did,
|
||||
'nurl' => $did,
|
||||
'alias' => ATProtocol::WEB . '/profile/' . $did,
|
||||
'name' => $did,
|
||||
'nick' => $did,
|
||||
'addr' => $did,
|
||||
'rel' => Contact::NOTHING,
|
||||
];
|
||||
$cid = Contact::insert($fields);
|
||||
} else {
|
||||
$cid = $contact['id'];
|
||||
}
|
||||
$fields = [
|
||||
'uid' => $contact_uid,
|
||||
'network' => Protocol::BLUESKY,
|
||||
'priority' => 1,
|
||||
'writable' => true,
|
||||
'blocked' => false,
|
||||
'readonly' => false,
|
||||
'pending' => false,
|
||||
'url' => $did,
|
||||
'nurl' => $did,
|
||||
'alias' => ATProtocol::WEB . '/profile/' . $did,
|
||||
'name' => $did,
|
||||
'nick' => $did,
|
||||
'addr' => $did,
|
||||
'rel' => Contact::NOTHING,
|
||||
];
|
||||
|
||||
$cid = Contact::insert($fields);
|
||||
|
||||
$this->updateContactByDID($did);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue