mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07: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",
|
"/v1/timelines/tag/:hashtag",
|
||||||
auth(false, ['read:statuses']),
|
auth(false, ['read:statuses']),
|
||||||
async (ctx, reply) => {
|
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 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);
|
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);
|
ctx.body = await NoteConverter.encodeMany(res, ctx);
|
||||||
|
|
Loading…
Reference in a new issue