[mastodon-client] Fix link pagination middleware oversight

This commit is contained in:
Laura Hausmann 2023-10-11 00:53:53 +02:00
parent a0adea70f5
commit 3204bd9d18
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -18,7 +18,7 @@ export async function PaginationMiddleware(ctx: MastoContext, next: () => Promis
link.push(l); link.push(l);
} }
if (ctx.pagination.minId) { if (ctx.pagination.minId) {
const l = `<${config.url}/api${ctx.path}?limit=${limit}&min_id=${ctx.pagination.maxId}>; rel="prev"`; const l = `<${config.url}/api${ctx.path}?limit=${limit}&min_id=${ctx.pagination.minId}>; rel="prev"`;
link.push(l); link.push(l);
} }
if (link.length > 0) { if (link.length > 0) {