fix: don't show 404 if no comments

This commit is contained in:
rebelonion 2024-02-15 13:32:05 -06:00
parent 9d9c4f026d
commit 4c35f9a0cf

View file

@ -39,7 +39,7 @@ object CommentsAPI {
val json = request.get(url)
if (!json.text.startsWith("{")) return null
val res = json.code == 200
if (!res) {
if (!res && json.code != 404) {
errorReason(json.code, json.text)
}
val parsed = try {