flash("success", "No changes to community detected");
return redirect(routes.Communities.show(id));
} else {
editCommunity.id = originalCommunity.id;
RestResponse restResponse = editCommunity.update(user.token());
HttpResponse httpResponse = restResponse.httpResponse;
if(httpResponse.getStatusLine().getStatusCode() == 200) {
Logger.info("ok");
flash("success", "Community has been updated.");
return redirect(routes.Communities.show(id));