Add test for DI constructability of GetPostAjaxPage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / ajax / GetTimesAjaxPage.kt
index 6930e45..cb3b86d 100644 (file)
@@ -3,7 +3,6 @@ package net.pterodactylus.sone.web.ajax
 import net.pterodactylus.sone.freenet.L10nFilter
 import net.pterodactylus.sone.text.TimeTextConverter
 import net.pterodactylus.sone.utils.jsonObject
-import net.pterodactylus.sone.utils.let
 import net.pterodactylus.sone.utils.parameters
 import net.pterodactylus.sone.web.WebInterface
 import net.pterodactylus.sone.web.page.FreenetRequest
@@ -43,7 +42,7 @@ class GetTimesAjaxPage(webInterface: WebInterface,
                                        "tooltip" to synchronized(dateTimeFormatter) {
                                                dateTimeFormatter.format(time)
                                        })
-               }.forEach { this@jsonObject.put(it.first, it.second) }
+               }.forEach { this@jsonObject.set(it.first, it.second) }
        }
 
 }