import kotlinx.coroutines.flow.toList
import kotlinx.html.*
import org.litote.kmongo.descending
+import java.lang.NullPointerException
import java.time.Instant
suspend fun ApplicationCall.recentCommentsPage(): HTML.() -> Unit {
val submitter = nationCache.getNation(comment.submittedBy)
if (submitter.isBanned && currentNation?.id != comment.submittedBy && currentNation?.id != OwnerNationId)
- redirectWithError("/lore/${comment.submittedIn}", "The user who posted that comment is banned from commenting", "comments")
+ throw NullPointerException("Shadowbanned comment")
val queryParams = if (request.queryParameters.isEmpty())
""