mirror of
https://github.com/turbomaster95/coderrrrr.git
synced 2025-05-11 20:40:14 +00:00
Update webfinger.ts
This commit is contained in:
parent
1e038326a8
commit
a76ad935ba
@ -10,7 +10,7 @@ export default function (req: VercelRequest, res: VercelResponse) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Expected format: acct:username@coderrrrr.site
|
// Expected format: acct:username@coderrrrr.site
|
||||||
const match = resource.match(/^acct:([^@]+)@coderrrrr\.site$/i);
|
const match = resource.match(/^acct:([^@]+)@coder\.is-a.dev$/i);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
res.status(400).json({ error: "Resource format not supported" });
|
res.status(400).json({ error: "Resource format not supported" });
|
||||||
return;
|
return;
|
||||||
@ -22,7 +22,7 @@ export default function (req: VercelRequest, res: VercelResponse) {
|
|||||||
// You can add more supported usernames as needed.
|
// You can add more supported usernames as needed.
|
||||||
let profileUrl: string;
|
let profileUrl: string;
|
||||||
if (username === "blog") {
|
if (username === "blog") {
|
||||||
profileUrl = "https://coderrrrr.site/@blog";
|
profileUrl = "https://coder.is-a.dev/@blog";
|
||||||
} else {
|
} else {
|
||||||
// If the username is not recognized, return a 404.
|
// If the username is not recognized, return a 404.
|
||||||
res.status(404).json({ error: "User not found" });
|
res.status(404).json({ error: "User not found" });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user