mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-31 19:34:55 +01:00
bugfix
This commit is contained in:
parent
2fa4f87f0b
commit
bd23e009a9
@ -643,7 +643,8 @@ public class Mastodon implements Connection {
|
|||||||
public Statuses getStatusReplies(long id, long minId, long maxId) throws MastodonException {
|
public Statuses getStatusReplies(long id, long minId, long maxId) throws MastodonException {
|
||||||
Statuses statusThreads = getStatuses(ENDPOINT_STATUS + id + "/context", new ArrayList<>(0), minId, maxId);
|
Statuses statusThreads = getStatuses(ENDPOINT_STATUS + id + "/context", new ArrayList<>(0), minId, maxId);
|
||||||
Statuses result = new Statuses();
|
Statuses result = new Statuses();
|
||||||
for (int i = 0; i < settings.getListSize(); i++)
|
int limit = Math.min(statusThreads.size(), settings.getListSize());
|
||||||
|
for (int i = 0; i < limit; i++)
|
||||||
result.add(statusThreads.get(i));
|
result.add(statusThreads.get(i));
|
||||||
result.setNextCursor(Statuses.NO_ID);
|
result.setNextCursor(Statuses.NO_ID);
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user