Skip to content

Commit

Permalink
Did a case insensitive check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhargav-Rao authored Sep 2, 2023
1 parent 7b7ddbe commit e2f5751
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e2f5751

Please sign in to comment.