X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fpost_update.php;h=0d223709e2d506acdc743752d727510837cdd622;hb=b0025745909b527127c7dd09fea0f9920158b595;hp=f67c064daf2f527f21bd9b5aed2e2523b80a9b83;hpb=7499824381b3cb4a90f0d126e3eaeb4b3b786cc4;p=friendica.git diff --git a/include/post_update.php b/include/post_update.php index f67c064daf..0d223709e2 100644 --- a/include/post_update.php +++ b/include/post_update.php @@ -5,8 +5,8 @@ use Friendica\Core\Config; use Friendica\Database\DBM; -use Friendica\Model\GlobalContact; -use Friendica\Object\Contact; +use Friendica\Model\Contact; +use Friendica\Model\GContact; /** * @brief Calls the post update functions @@ -74,7 +74,7 @@ function post_update_1192() { // Set the "gcontact-id" in the item table and add a new gcontact entry if needed foreach ($item_arr AS $item) { - $gcontact_id = GlobalContact::getId(array("url" => $item['author-link'], "network" => $item['network'], + $gcontact_id = GContact::getId(array("url" => $item['author-link'], "network" => $item['network'], "photo" => $item['author-avatar'], "name" => $item['author-name'])); q("UPDATE `item` SET `gcontact-id` = %d WHERE `uid` = %d AND `author-link` = '%s' AND `gcontact-id` = 0", intval($gcontact_id), intval($item["uid"]), dbesc($item["author-link"]));