fixed #855
This commit is contained in:
parent
039a022593
commit
6a4138be92
|
@ -31,6 +31,7 @@ fun Mastodon.batchGetRelationships(ids: Collection<String>): Map<String, Relatio
|
||||||
@Suppress("LoopToCallChain")
|
@Suppress("LoopToCallChain")
|
||||||
for (i in indices step 100) {
|
for (i in indices step 100) {
|
||||||
val batch = list.subArray(i until (i + 100).coerceAtMost(indices.last))
|
val batch = list.subArray(i until (i + 100).coerceAtMost(indices.last))
|
||||||
|
if (batch.isEmpty()) continue
|
||||||
getRelationships(batch).forEach {
|
getRelationships(batch).forEach {
|
||||||
result[it.id] = it
|
result[it.id] = it
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue