mirror of https://github.com/usbharu/Hideout.git
fix: ページネーション対応忘れを修正
This commit is contained in:
parent
40c2c93f89
commit
61e61ec4bd
|
@ -35,7 +35,15 @@ class MastodonTimelineApiController(
|
||||||
limit = limit?.coerceIn(0, 80) ?: 40
|
limit = limit?.coerceIn(0, 80) ?: 40
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
ResponseEntity(homeTimeline.asFlow(), HttpStatus.OK)
|
|
||||||
|
val httpHeader = homeTimeline.toHttpHeader(
|
||||||
|
{ "${applicationConfig.url}/api/v1/home?max_id=$it" },
|
||||||
|
{ "${applicationConfig.url}/api/v1/home?min_id=$it" }
|
||||||
|
) ?: return@runBlocking ResponseEntity(
|
||||||
|
homeTimeline.asFlow(),
|
||||||
|
HttpStatus.OK
|
||||||
|
)
|
||||||
|
ResponseEntity.ok().header("Link", httpHeader).body(homeTimeline.asFlow())
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun apiV1TimelinesPublicGet(
|
override fun apiV1TimelinesPublicGet(
|
||||||
|
|
Loading…
Reference in New Issue