hashtagTimelineController: toLowerCase

This commit is contained in:
Alex Gleason 2024-04-30 14:58:00 -05:00
parent 19ba7e74d6
commit 35ab012276
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ const publicTimelineController: AppController = (c) => {
}; };
const hashtagTimelineController: AppController = (c) => { const hashtagTimelineController: AppController = (c) => {
const hashtag = c.req.param('hashtag')!; const hashtag = c.req.param('hashtag')!.toLowerCase();
const params = paginationSchema.parse(c.req.query()); const params = paginationSchema.parse(c.req.query());
return renderStatuses(c, [{ kinds: [1], '#t': [hashtag], ...params }]); return renderStatuses(c, [{ kinds: [1], '#t': [hashtag], ...params }]);
}; };