use Friendica\BaseModule;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
-use Friendica\Core\System;
use Friendica\Network\Probe;
/**
*/
class WebFinger extends BaseModule
{
- public static function init()
+ public static function content()
{
if (!local_user()) {
- System::httpExit(
- 403,
- [
- 'title' => L10n::t('Public access denied.'),
- 'description' => L10n::t('Only logged in users are permitted to perform a probing.'),
- ],
- );
- exit();
+ $e = new \Friendica\Network\HTTPException\ForbiddenException(L10n::t("Only logged in users are permitted to perform a probing."));
+ $e->httpdesc = L10n::t("Public access denied.");
+ throw $e;
}
- }
- public static function content()
- {
$app = self::getApp();
$addr = defaults($_GET, 'addr', '');