]> git.mxchange.org Git - friendica.git/blobdiff - include/post_update.php
Make the community pages available to local users every time
[friendica.git] / include / post_update.php
index f67c064daf2f527f21bd9b5aed2e2523b80a9b83..0d223709e2d506acdc743752d727510837cdd622 100644 (file)
@@ -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"]));