fix(route/picnob): update picnob domain (#18998)

Co-authored-by: AiraNadih <AiraNadih@users.noreply.github.com>
This commit is contained in:
AiraNadih
2025-05-03 22:47:06 +08:00
committed by GitHub
co-authored by AiraNadih
parent c89c875548
commit 6bbf2f0289
+4 -4
View File
@@ -28,11 +28,11 @@ export const route: Route = {
},
radar: [
{
source: ['pixwox.com/profile/:id'],
source: ['www.pixnoy.com/profile/:id'],
target: '/user/:id',
},
{
source: ['pixwox.com/profile/:id/tagged'],
source: ['www.pixnoy.com/profile/:id/tagged'],
target: '/user/:id/tagged',
},
],
@@ -43,8 +43,8 @@ export const route: Route = {
};
async function handler(ctx) {
// NOTE: 'picnob' is still available, but all requests to 'picnob' will be redirected to 'pixwox' eventually
const baseUrl = 'https://www.pixwox.com';
// NOTE: 'picnob' is still available, but all requests to 'picnob' will be redirected to 'pixnoy' eventually
const baseUrl = 'https://www.pixnoy.com';
const id = ctx.req.param('id');
const type = ctx.req.param('type') ?? 'profile';
const profileUrl = `${baseUrl}/profile/${id}/${type === 'tagged' ? 'tagged/' : ''}`;