Commit facde93
committed
fix: clamp negative offset to 0 in getTimeline
Negative offset values passed through to Array.slice() use JS tail-indexing
semantics, returning commits from the wrong end of the array and producing
nonsensical pagination headers.1 parent 7dc3211 commit facde93
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
0 commit comments