X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fostatus_subscribe.php;h=987f31699e588539727d545a6f113ba967399d29;hb=aa2ab3d0e7262fcc9c8c78e4ed943429081af6b0;hp=e8ba144a1633a7b2e5d30d4a35ffb502096eab73;hpb=88353ce56f0e5da6352af2d999a58bd0c9b375f7;p=friendica.git diff --git a/mod/ostatus_subscribe.php b/mod/ostatus_subscribe.php index e8ba144a16..987f31699e 100644 --- a/mod/ostatus_subscribe.php +++ b/mod/ostatus_subscribe.php @@ -5,6 +5,7 @@ use Friendica\App; use Friendica\Core\L10n; use Friendica\Core\PConfig; +use Friendica\Core\Protocol; use Friendica\Core\System; use Friendica\Model\Contact; use Friendica\Network\Probe; @@ -72,8 +73,8 @@ function ostatus_subscribe_content(App $a) { $o .= "
".$counter."/".$total.": ".$url; $data = Probe::uri($url); - if ($data["network"] == NETWORK_OSTATUS) { - $result = Contact::createFromProbe($uid, $url, true, NETWORK_OSTATUS); + if ($data["network"] == Protocol::OSTATUS) { + $result = Contact::createFromProbe($uid, $url, true, Protocol::OSTATUS); if ($result["success"]) { $o .= " - ".L10n::t("success"); } else {