From: Michael Date: Sat, 24 Sep 2022 21:53:27 +0000 (+0000) Subject: Add the uri-id if missing X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bca9069b22ffc2e34f28cfea963510073907d11e;p=friendica.git Add the uri-id if missing --- diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index 82fe70e3f1..62b023fb6f 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -1153,6 +1153,10 @@ class PostUpdate while ($contact = DBA::fetch($contacts)) { $id = $contact['id']; + if (is_null($contact['uri-id'])) { + $contact['uri-id'] = ItemURI::getIdByURI($contact['url']); + DBA::update('contact', ['uri-id' => $contact['uri-id']], ['id' => $contact['id']]); + } Contact::setAccountUser($contact['id'], $contact['uid'], $contact['uri-id'], $contact['url']); ++$rows; }