This commit is contained in:
nuclearfog 2023-11-09 23:05:56 +01:00
parent 2fa4f87f0b
commit bd23e009a9
No known key found for this signature in database
GPG Key ID: 03488A185C476379

View File

@ -643,7 +643,8 @@ public class Mastodon implements Connection {
public Statuses getStatusReplies(long id, long minId, long maxId) throws MastodonException {
Statuses statusThreads = getStatuses(ENDPOINT_STATUS + id + "/context", new ArrayList<>(0), minId, maxId);
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.setNextCursor(Statuses.NO_ID);
return result;