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:
@@ -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");
|
||||
}
|
||||
?>
|
||||
@@ -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");
|
||||
}
|
||||
?>
|
||||
@@ -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");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user