-use Friendica\Core\System;
-
-require_once 'include/probe.php';
-require_once 'include/follow.php';
-
-function ostatus_subscribe_content(App $a) {
-
- if (! local_user()) {
- notice( t('Permission denied.') . EOL);
- goaway($_SESSION['return_url']);
+use Friendica\Core\Protocol;
+use Friendica\DI;
+use Friendica\Model\Contact;
+use Friendica\Network\Probe;
+use Friendica\Util\Network;
+
+function ostatus_subscribe_content(App $a)
+{
+ if (!local_user()) {
+ notice(DI::l10n()->t('Permission denied.') . EOL);
+ DI::baseUrl()->redirect('ostatus_subscribe');