mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 18:38:49 +00:00
GContact moved to src
Update references to socgraph to GContact namespace functions. Related to https://github.com/friendica/friendica/issues/3878
This commit is contained in:
parent
f889acf8fe
commit
7be5dd110c
3 changed files with 19 additions and 20 deletions
|
@ -60,13 +60,13 @@
|
|||
* Requirements: PHP5, curl [Slinky library]
|
||||
*/
|
||||
|
||||
use Friendica\Core\Worker;
|
||||
|
||||
require_once('include/enotify.php');
|
||||
require_once("include/socgraph.php");
|
||||
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Model\GContact;
|
||||
|
||||
require_once 'include/enotify.php';
|
||||
|
||||
|
||||
define('TWITTER_DEFAULT_POLL_INTERVAL', 5); // given in minutes
|
||||
|
||||
|
@ -956,7 +956,7 @@ function twitter_fetch_contact($uid, $contact, $create_user) {
|
|||
|
||||
$avatar = twitter_fix_avatar($contact->profile_image_url_https);
|
||||
|
||||
update_gcontact(array("url" => "https://twitter.com/".$contact->screen_name,
|
||||
GContact::updateGContact(array("url" => "https://twitter.com/".$contact->screen_name,
|
||||
"network" => NETWORK_TWITTER, "photo" => $avatar, "hide" => true,
|
||||
"name" => $contact->name, "nick" => $contact->screen_name,
|
||||
"location" => $contact->location, "about" => $contact->description,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue