1
1
Fork 0

Includes and calls

Remove includes and update function calls
This commit is contained in:
Adam Magness 2018-01-09 09:59:52 -05:00
commit a59ab5552e
9 changed files with 25 additions and 24 deletions

View file

@ -1,12 +1,13 @@
<?php
/**
* @file mod/ostatus_subscribe.php
*/
use Friendica\App;
use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\Model\Contact;
use Friendica\Network\Probe;
require_once 'include/follow.php';
function ostatus_subscribe_content(App $a) {
if (! local_user()) {
@ -67,7 +68,7 @@ function ostatus_subscribe_content(App $a) {
$data = Probe::uri($url);
if ($data["network"] == NETWORK_OSTATUS) {
$result = new_contact($uid, $url, true, NETWORK_OSTATUS);
$result = Contact::new($uid, $url, true, NETWORK_OSTATUS);
if ($result["success"]) {
$o .= " - ".t("success");
} else {