diff --git a/src/main/java/in/bhargavrao/stackoverflow/natty/utils/PostUtils.java b/src/main/java/in/bhargavrao/stackoverflow/natty/utils/PostUtils.java index 81d2e15..6756c87 100644 --- a/src/main/java/in/bhargavrao/stackoverflow/natty/utils/PostUtils.java +++ b/src/main/java/in/bhargavrao/stackoverflow/natty/utils/PostUtils.java @@ -217,7 +217,7 @@ public static String autoFlag(Post post, AutoComment comment, String sitename, S JsonObject flagOptions = apiService.getAnswerFlagOptions(post.getAnswerID()); JsonArray options = flagOptions.getAsJsonArray("items"); for (JsonElement e : options) { - if (e.getAsJsonObject().get("title").getAsString().equals("Not an answer")) { + if (e.getAsJsonObject().get("title").getAsString().equalsIgnoreCase("not an answer")) { JsonObject flaggedPost = apiService.flagAnswer(post.getAnswerID(), e.getAsJsonObject().get("option_id").getAsInt()); StorageService service = new FileStorageService();