Includes and calls
Remove includes and update function calls
This commit is contained in:
parent
edfb08a779
commit
a59ab5552e
9 changed files with 25 additions and 24 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue