Skip to content

Commit b3da120

Browse files
committed
Fix
1 parent 4f67ebc commit b3da120

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/src/common/github.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,13 @@ class GitHub {
317317
* [slug] is a repository slug.
318318
*/
319319
Future<List<User>> stargazers(RepositorySlug slug) {
320-
return getJSON("/repos/${slug.fullName}/stargazers", statusCode: 200, convert: (GitHub github, List<dynamic> input) {
321-
return copyOf(input.map((it) => User.fromJSON(github, it)));
320+
return new PaginationHelper(this).fetch("GET", "/repos/${slug.fullName}/stargazers").then((responses) {
321+
var users = [];
322+
for (var response in responses) {
323+
var json = JSON.decode(response.body);
324+
users.addAll(json.map((it) => User.fromJSON(this, it)));
325+
}
326+
return users;
322327
});
323328
}
324329

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy