Mark mii subdomain explicitly deprecated.

This commit is contained in:
flash 2022-07-03 22:48:05 +00:00
parent b1311e336c
commit 6b77e319a3

View file

@ -101,6 +101,20 @@ if($reqPath === '/metadata') {
Stopwatch::start();
$resp = new stdClass;
if($_SERVER['HTTP_HOST'] === 'mii.flashii.net') {
$resp->type = 'object';
$resp->content_type = new stdClass;
$resp->content_type->string = 'text/meow';
$resp->content_type->type = 'text';
$resp->content_type->subtype = 'meow';
$resp->title = 'Update your URLs: mii.flashii.net -> uiharu.flashii.net';
$resp->description = 'Update your URLs: mii.flashii.net -> uiharu.flashii.net';
$resp->site_name = 'Deprecation notice';
$resp->took = 35.1;
echo json_encode($resp);
return;
}
if($reqMethod === 'POST') {
$targetUrl = substr((string)file_get_contents('php://input'), 0, 1000);
} else {