Commit afda6b2b authored by Liang Ding's avatar Liang Ding

Merge remote-tracking branch 'refs/remotes/origin/2.0.0-dev'

parents 88cdd063 d43edac9
...@@ -70,7 +70,7 @@ import org.json.JSONObject; ...@@ -70,7 +70,7 @@ import org.json.JSONObject;
* Filler utilities. * Filler utilities.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.5.11.13, Dec 17, 2015 * @version 1.5.11.13, Feb 26, 2017
* @since 0.3.1 * @since 0.3.1
*/ */
@Service @Service
...@@ -908,7 +908,7 @@ public class Filler { ...@@ -908,7 +908,7 @@ public class Filler {
* @param author the specified author * @param author the specified author
* @param preference the specified preference * @param preference the specified preference
* @throws ServiceException service exception * @throws ServiceException service exception
* @see #setArticlesExProperties(java.util.List, org.json.JSONObject) * @see #setArticlesExProperties(HttpServletRequest, List, JSONObject, JSONObject)
*/ */
private void setArticleExProperties(final HttpServletRequest request, private void setArticleExProperties(final HttpServletRequest request,
final JSONObject article, final JSONObject author, final JSONObject preference) final JSONObject article, final JSONObject author, final JSONObject preference)
...@@ -970,7 +970,7 @@ public class Filler { ...@@ -970,7 +970,7 @@ public class Filler {
* @param article the specified article * @param article the specified article
* @param preference the specified preference * @param preference the specified preference
* @throws ServiceException service exception * @throws ServiceException service exception
* @see #setArticlesExProperties(java.util.List, org.json.JSONObject) * @see #setArticlesExProperties(HttpServletRequest, List, JSONObject)
*/ */
private void setArticleExProperties(final HttpServletRequest request, private void setArticleExProperties(final HttpServletRequest request,
final JSONObject article, final JSONObject preference) throws ServiceException { final JSONObject article, final JSONObject preference) throws ServiceException {
...@@ -1016,7 +1016,7 @@ public class Filler { ...@@ -1016,7 +1016,7 @@ public class Filler {
* Sets some extra properties into the specified article with the specified author and preference. * Sets some extra properties into the specified article with the specified author and preference.
* *
* <p> * <p>
* The batch version of method {@linkplain #setArticleExProperties(org.json.JSONObject, org.json.JSONObject)}. * The batch version of method {@linkplain #setArticleExProperties(HttpServletRequest, JSONObject, JSONObject, JSONObject)}.
* </p> * </p>
* *
* <p> * <p>
...@@ -1035,7 +1035,7 @@ public class Filler { ...@@ -1035,7 +1035,7 @@ public class Filler {
* @param author the specified author * @param author the specified author
* @param preference the specified preference * @param preference the specified preference
* @throws ServiceException service exception * @throws ServiceException service exception
* @see #setArticleExProperties(org.json.JSONObject, org.json.JSONObject) * @see #setArticleExProperties(HttpServletRequest, JSONObject, JSONObject, JSONObject)
*/ */
public void setArticlesExProperties(final HttpServletRequest request, public void setArticlesExProperties(final HttpServletRequest request,
final List<JSONObject> articles, final JSONObject author, final JSONObject preference) final List<JSONObject> articles, final JSONObject author, final JSONObject preference)
...@@ -1049,7 +1049,7 @@ public class Filler { ...@@ -1049,7 +1049,7 @@ public class Filler {
* Sets some extra properties into the specified article with the specified preference. * Sets some extra properties into the specified article with the specified preference.
* *
* <p> * <p>
* The batch version of method {@linkplain #setArticleExProperties(org.json.JSONObject, org.json.JSONObject)}. * The batch version of method {@linkplain #setArticleExProperties(HttpServletRequest, JSONObject, JSONObject)}.
* </p> * </p>
* *
* <p> * <p>
...@@ -1067,7 +1067,7 @@ public class Filler { ...@@ -1067,7 +1067,7 @@ public class Filler {
* @param articles the specified articles * @param articles the specified articles
* @param preference the specified preference * @param preference the specified preference
* @throws ServiceException service exception * @throws ServiceException service exception
* @see #setArticleExProperties(org.json.JSONObject, org.json.JSONObject) * @see #setArticleExProperties(HttpServletRequest, JSONObject, JSONObject)
*/ */
public void setArticlesExProperties(final HttpServletRequest request, public void setArticlesExProperties(final HttpServletRequest request,
final List<JSONObject> articles, final JSONObject preference) final List<JSONObject> articles, final JSONObject preference)
......
...@@ -544,9 +544,6 @@ public class ArticleQueryService { ...@@ -544,9 +544,6 @@ public class ArticleQueryService {
article.put(ARTICLE_CREATE_TIME, ((Date) article.get(ARTICLE_CREATE_DATE)).getTime()); article.put(ARTICLE_CREATE_TIME, ((Date) article.get(ARTICLE_CREATE_DATE)).getTime());
article.put(ARTICLE_UPDATE_TIME, ((Date) article.get(ARTICLE_UPDATE_DATE)).getTime()); article.put(ARTICLE_UPDATE_TIME, ((Date) article.get(ARTICLE_UPDATE_DATE)).getTime());
// Markdown to HTML for content and abstract
markdown(article);
// Remove unused properties // Remove unused properties
for (int j = 0; j < excludes.length(); j++) { for (int j = 0; j < excludes.length(); j++) {
article.remove(excludes.optString(j)); article.remove(excludes.optString(j));
...@@ -609,9 +606,6 @@ public class ArticleQueryService { ...@@ -609,9 +606,6 @@ public class ArticleQueryService {
article.put(ARTICLE_CREATE_TIME, ((Date) article.get(ARTICLE_CREATE_DATE)).getTime()); article.put(ARTICLE_CREATE_TIME, ((Date) article.get(ARTICLE_CREATE_DATE)).getTime());
// Markdown to HTML for content and abstract
markdown(article);
ret.add(article); ret.add(article);
} }
...@@ -915,9 +909,6 @@ public class ArticleQueryService { ...@@ -915,9 +909,6 @@ public class ArticleQueryService {
article.put(ARTICLE_CREATE_TIME, ((Date) article.get(ARTICLE_CREATE_DATE)).getTime()); article.put(ARTICLE_CREATE_TIME, ((Date) article.get(ARTICLE_CREATE_DATE)).getTime());
// Markdown to HTML for content and abstract
markdown(article);
ret.add(article); ret.add(article);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment