1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-05 03:24:41 +00:00

uwuzu version 1.2.25

This commit is contained in:
daichimarukana
2023-10-22 23:45:14 +09:00
parent 0ecf4b9fb1
commit 884f8043a3
33 changed files with 814 additions and 113 deletions
+2
View File
@@ -9,5 +9,7 @@ if(file_get_contents($activitypub_file) === "true"){
echo '<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">';
echo '<Link rel="lrdd" type="application/xrd+xml" template="https://'.$domain.'/.well-known/webfinger?resource={uri}"/>';
echo '</XRD>';
}else{
header("HTTP/1.1 410 Gone");
}
?>
+2
View File
@@ -15,5 +15,7 @@ if(file_get_contents($activitypub_file) === "true"){
);
echo json_encode($item, JSON_UNESCAPED_UNICODE);
}else{
header("HTTP/1.1 410 Gone");
}
?>
+3 -1
View File
@@ -21,7 +21,7 @@ if(file_get_contents($activitypub_file) === "true"){
$user = htmlentities($_GET['resource']);
$userid = str_replace('@','', str_replace('@'.$domain.'', '', $user));
$userid = str_replace('acct:','', str_replace('@'.$domain.'', '', $user));
$item = array(
"subject" => "acct:".$userid.'@'.$domain.'',
@@ -35,5 +35,7 @@ if(file_get_contents($activitypub_file) === "true"){
);
echo json_encode($item, JSON_UNESCAPED_UNICODE);
}else{
header("HTTP/1.1 410 Gone");
}
?>