From 443c8a43f73be0294190ac38946806472df2cfe5 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 9 Aug 2024 21:07:41 -0500 Subject: [PATCH] Fix matching @ routes in app --- src/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index 9cbc0238..27900b54 100644 --- a/src/app.ts +++ b/src/app.ts @@ -327,8 +327,8 @@ const publicFiles = serveStatic({ root: './public/' }); const staticFiles = serveStatic({ root: './static/' }); // Known frontend routes -app.get('/@:acct', frontendController); -app.get('/@:acct/*', frontendController); +app.get('/:acct{@.*}', frontendController); +app.get('/:acct{@.*}/*', frontendController); app.get('/users/*', frontendController); app.get('/statuses/*', frontendController); app.get('/notice/*', frontendController);