mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-18 17:33:55 +00:00
fix: don't show 404 if no comments
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user