mv.getModel().put("topics", getTopics(ip));
mv.getModel().put("comments", getComments(ip));
mv.getModel().put("users", getUsers(ip, userAgentId));
IPBlockInfo blockInfo = ipBlockDao.getBlockInfo(ip);
Boolean allowPosting = false;
Boolean captchaRequired = true;
if (blockInfo.isInitialized()) {
mv.getModel().put("blockInfo", blockInfo);
allowPosting = blockInfo.isAllowRegistredPosting();
captchaRequired = blockInfo.isCaptchaRequired();
mv.getModel().put("blockModerator", userDao.getUserCached(blockInfo.getModerator()));
}
mv.addObject("allowPosting", allowPosting);
mv.addObject("captchaRequired", captchaRequired);
mv.getModel().put("tor", IPBlockDao.getTor(ip));