mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 13:39:06 +01:00
[mastodon-client] Ignore capitalization for hashtag timeline
This commit is contained in:
parent
4176ac20ac
commit
bc08d8c92b
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ export function setupEndpointsTimeline(router: Router): void {
|
|||
"/v1/timelines/tag/:hashtag",
|
||||
auth(false, ['read:statuses']),
|
||||
async (ctx, reply) => {
|
||||
const tag = (ctx.params.hashtag ?? '').trim();
|
||||
const tag = (ctx.params.hashtag ?? '').trim().toLowerCase();
|
||||
const args = normalizeUrlQuery(argsToBools(limitToInt(ctx.query)), ['any[]', 'all[]', 'none[]']);
|
||||
const res = await TimelineHelpers.getTagTimeline(tag, args.max_id, args.since_id, args.min_id, args.limit, args['any[]'] ?? [], args['all[]'] ?? [], args['none[]'] ?? [], args.only_media, args.local, args.remote, ctx);
|
||||
ctx.body = await NoteConverter.encodeMany(res, ctx);
|
||||
|
|
Loading…
Reference in a new issue