Update webfinger.ts

This commit is contained in:
Deva Midhun 2025-04-25 11:57:05 +05:30 committed by GitHub
parent 1e038326a8
commit a76ad935ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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" });