mirror of
https://github.com/Daichimarukana/uwuzu.git
synced 2026-06-05 11:34:41 +00:00
24 lines
658 B
PHP
24 lines
658 B
PHP
<?php
|
|
$activitypub_file = "../../server/activitypub.txt";
|
|
if(file_get_contents($activitypub_file) === "true"){
|
|
header("Content-Type: application/json; charset=utf-8");
|
|
|
|
$domain = $_SERVER['HTTP_HOST'];
|
|
|
|
$user = htmlentities($_GET['actor']);
|
|
|
|
$userid = str_replace('@','', str_replace('@'.$domain.'', '', $user));
|
|
|
|
$item = array(
|
|
"@context" => "https://www.w3.org/ns/activitystreams",
|
|
"summary" => "inbox of ".$userid."",
|
|
"type" => "OrderedCollection",
|
|
"totalItems" => 0,
|
|
"orderedItems" => [],
|
|
);
|
|
|
|
echo json_encode($item, JSON_UNESCAPED_UNICODE);
|
|
}else{
|
|
header("HTTP/1.1 410 Gone");
|
|
}
|
|
?>
|