SiteBean site = super.getSiteByID(reply.getSid());
if (site == null) {
msgs.add("reply", new ActionMessage("error.site_not_available"));
break;
}
_ReplyBean rbean = ReplyDAO.getReply(DiaryReplyBean.class, reply.getReply_id());
if (rbean!=null && rbean.getSite().getId() == site.getId()) {
String content = StringUtils.abbreviate(super.autoFiltrate(
null, reply.getContent()), MAX_REPLY_LENGTH);
rbean.setContent(super.filterScriptAndStyle(content));
rbean.setAuthor(reply.getAuthor());
rbean.setOwnerOnly(reply.getOwnerOnly());
if (StringUtils.isNotEmpty(reply.getAuthorURL()))
rbean.setAuthorURL(reply.getAuthorURL());
if (StringUtils.isNotEmpty(reply.getAuthorEmail()))
rbean.setAuthorEmail(reply.getAuthorEmail());
ReplyDAO.updateReply(rbean);
}
break;
}
if (!msgs.isEmpty()) {