Fix ban text not displaying properly

Fixes #165
multisite
Floens 9 years ago
parent 52492c9d50
commit 5ae20bfbe6
  1. 2
      Clover/app/src/main/java/org/floens/chan/core/http/ReplyHttpCall.java

@ -111,7 +111,7 @@ public class ReplyHttpCall extends HttpCall {
Matcher errorMessageMatcher = ERROR_MESSAGE.matcher(result); Matcher errorMessageMatcher = ERROR_MESSAGE.matcher(result);
if (errorMessageMatcher.find()) { if (errorMessageMatcher.find()) {
errorMessage = Jsoup.parse(errorMessageMatcher.group(1)).body().ownText().replace("[]", ""); errorMessage = Jsoup.parse(errorMessageMatcher.group(1)).body().text();
} else { } else {
Matcher threadNoMatcher = THREAD_NO_PATTERN.matcher(result); Matcher threadNoMatcher = THREAD_NO_PATTERN.matcher(result);
if (threadNoMatcher.find()) { if (threadNoMatcher.find()) {

Loading…
Cancel
Save