Fix feed generation cursor split (#16)
This commit is contained in:
parent
d93c993883
commit
531aab43b1
@ -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')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user