Rename Model\GlobalContact to Model\GContact
This commit is contained in:
@@ -7,7 +7,7 @@ use Friendica\Content\Feature;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\GlobalContact;
|
||||
use Friendica\Model\GContact;
|
||||
|
||||
require_once "include/contact_selectors.php";
|
||||
require_once "include/contact_widgets.php";
|
||||
@@ -774,7 +774,7 @@ function navbar_complete(App $a) {
|
||||
}
|
||||
|
||||
if ($localsearch) {
|
||||
$x = GlobalContact::searchByName($search, $mode);
|
||||
$x = GContact::searchByName($search, $mode);
|
||||
return $x;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ use Friendica\Core\System;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\GlobalContact;
|
||||
use Friendica\Model\GContact;
|
||||
|
||||
require_once 'include/contact_selectors.php';
|
||||
|
||||
@@ -250,18 +250,18 @@ function common_friends_visitor_widget($profile_uid) {
|
||||
}
|
||||
|
||||
if ($cid) {
|
||||
$t = GlobalContact::countCommonFriends($profile_uid, $cid);
|
||||
$t = GContact::countCommonFriends($profile_uid, $cid);
|
||||
} else {
|
||||
$t = GlobalContact::countCommonFriendsZcid($profile_uid, $zcid);
|
||||
$t = GContact::countCommonFriendsZcid($profile_uid, $zcid);
|
||||
}
|
||||
if (! $t) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($cid) {
|
||||
$r = GlobalContact::commonFriends($profile_uid, $cid, 0, 5, true);
|
||||
$r = GContact::commonFriends($profile_uid, $cid, 0, 5, true);
|
||||
} else {
|
||||
$r = GlobalContact::commonFriendsZcid($profile_uid, $zcid, 0, 5, true);
|
||||
$r = GContact::commonFriendsZcid($profile_uid, $zcid, 0, 5, true);
|
||||
}
|
||||
|
||||
return replace_macros(get_markup_template('remote_friends_common.tpl'), array(
|
||||
|
||||
@@ -11,7 +11,7 @@ use Friendica\Core\Worker;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\GlobalContact;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Object\Image;
|
||||
use Friendica\Protocol\DFRN;
|
||||
use Friendica\Protocol\OStatus;
|
||||
@@ -742,10 +742,10 @@ function item_store($arr, $force_parent = false, $notify = false, $dontcache = f
|
||||
* On comments the author is the better choice.
|
||||
*/
|
||||
if ($arr['parent-uri'] === $arr['uri']) {
|
||||
$arr["gcontact-id"] = GlobalContact::getId(array("url" => $arr['owner-link'], "network" => $arr['network'],
|
||||
$arr["gcontact-id"] = GContact::getId(array("url" => $arr['owner-link'], "network" => $arr['network'],
|
||||
"photo" => $arr['owner-avatar'], "name" => $arr['owner-name']));
|
||||
} else {
|
||||
$arr["gcontact-id"] = GlobalContact::getId(array("url" => $arr['author-link'], "network" => $arr['network'],
|
||||
$arr["gcontact-id"] = GContact::getId(array("url" => $arr['author-link'], "network" => $arr['network'],
|
||||
"photo" => $arr['author-avatar'], "name" => $arr['author-name']));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\GlobalContact;
|
||||
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"]));
|
||||
|
||||
Reference in New Issue
Block a user