mirror of
https://github.com/turbomaster95/coderrrrr.git
synced 2025-05-11 04:30: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
|
||||
const match = resource.match(/^acct:([^@]+)@coderrrrr\.site$/i);
|
||||
const match = resource.match(/^acct:([^@]+)@coder\.is-a.dev$/i);
|
||||
if (!match) {
|
||||
res.status(400).json({ error: "Resource format not supported" });
|
||||
return;
|
||||
@ -22,7 +22,7 @@ export default function (req: VercelRequest, res: VercelResponse) {
|
||||
// You can add more supported usernames as needed.
|
||||
let profileUrl: string;
|
||||
if (username === "blog") {
|
||||
profileUrl = "https://coderrrrr.site/@blog";
|
||||
profileUrl = "https://coder.is-a.dev/@blog";
|
||||
} else {
|
||||
// If the username is not recognized, return a 404.
|
||||
res.status(404).json({ error: "User not found" });
|
||||
|
Loading…
x
Reference in New Issue
Block a user