diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/AnnouncementController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/AnnouncementController.kt index c57fb79f9..122eff468 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/AnnouncementController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/AnnouncementController.kt @@ -25,8 +25,9 @@ private const val WEBSITE = "https://komga.org" @RequestMapping("api/v1/announcements", produces = [MediaType.APPLICATION_JSON_VALUE]) class AnnouncementController( private val userRepository: KomgaUserRepository, + webClientBuilder: WebClient.Builder, ) { - private val webClient = WebClient.create("$WEBSITE/blog/feed.json") + private val webClient = webClientBuilder.baseUrl("$WEBSITE/blog/feed.json").build() private val cache = Caffeine