Fix pagination for mstdn command
This commit is contained in:
parent
5fad354d1a
commit
dd0b467062
4 changed files with 18 additions and 5 deletions
|
@ -17,6 +17,7 @@ func TestCmdFollowers(t *testing.T) {
|
|||
fmt.Fprintln(w, `{"id": 123}`)
|
||||
return
|
||||
case "/api/v1/accounts/123/followers":
|
||||
w.Header().Set("Link", `<http://example.com?since_id=890>; rel="prev"`)
|
||||
fmt.Fprintln(w, `[{"id": 234, "username": "ZZZ", "acct": "zzz"}]`)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue