Skip to content
Permalink
Browse files

#181

  • Loading branch information...
88250 committed Apr 24, 2016
1 parent 4c8c39b commit 3b7352f9a878819459040a1f94c7703cc679775e
@@ -220,7 +220,7 @@ public void getArticleRevisions(final HTTPRequestContext context, final HttpServ
final List<JSONObject> revisions = articleQueryService.getArticleRevisions(articleId);
final JSONObject ret = new JSONObject();
ret.put(Keys.STATUS_CODE, true);
ret.put(Revision.REVISIONS, revisions);
ret.put(Revision.REVISIONS, (Object) revisions);

context.renderJSON(ret);
}
@@ -816,6 +816,7 @@ public JSONObject getArticle(final String articleId) throws ServiceException {
articleContent = Markdowns.toHTML(articleContent);
articleContent = Markdowns.clean(articleContent, "");
data.put(Article.ARTICLE_CONTENT, articleContent);
rev.put(Revision.REVISION_DATA, data);
}

return ret;

0 comments on commit 3b7352f

Please sign in to comment.
You can’t perform that action at this time.