Fix feed generation cursor split (#16)

This commit is contained in:
Cloudhunter 2023-05-15 18:27:13 +01:00 committed by GitHub
parent d93c993883
commit 531aab43b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ export default function (server: Server, ctx: AppContext) {
.limit(params.limit) .limit(params.limit)
if (params.cursor) { if (params.cursor) {
const [indexedAt, cid] = params.cursor.split('..') const [indexedAt, cid] = params.cursor.split('::')
if (!indexedAt || !cid) { if (!indexedAt || !cid) {
throw new InvalidRequestError('malformed cursor') throw new InvalidRequestError('malformed cursor')
} }