Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo
Commits
afda6b2b
Commit
afda6b2b
authored
Feb 28, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/2.0.0-dev'
parents
88cdd063
d43edac9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
16 deletions
+7
-16
src/main/java/org/b3log/solo/processor/util/Filler.java
src/main/java/org/b3log/solo/processor/util/Filler.java
+7
-7
src/main/java/org/b3log/solo/service/ArticleQueryService.java
...main/java/org/b3log/solo/service/ArticleQueryService.java
+0
-9
No files found.
src/main/java/org/b3log/solo/processor/util/Filler.java
View file @
afda6b2b
...
...
@@ -70,7 +70,7 @@ import org.json.JSONObject;
* Filler utilities.
*
* @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
*/
@Service
...
...
@@ -908,7 +908,7 @@ public class Filler {
* @param author the specified author
* @param preference the specified preference
* @throws ServiceException service exception
* @see #setArticlesExProperties(
java.util.List, org.json.
JSONObject)
* @see #setArticlesExProperties(
HttpServletRequest, List, JSONObject,
JSONObject)
*/
private
void
setArticleExProperties
(
final
HttpServletRequest
request
,
final
JSONObject
article
,
final
JSONObject
author
,
final
JSONObject
preference
)
...
...
@@ -970,7 +970,7 @@ public class Filler {
* @param article the specified article
* @param preference the specified preference
* @throws ServiceException service exception
* @see #setArticlesExProperties(
java.util.List, org.json.
JSONObject)
* @see #setArticlesExProperties(
HttpServletRequest, List,
JSONObject)
*/
private
void
setArticleExProperties
(
final
HttpServletRequest
request
,
final
JSONObject
article
,
final
JSONObject
preference
)
throws
ServiceException
{
...
...
@@ -1016,7 +1016,7 @@ public class Filler {
* Sets some extra properties into the specified article with the specified author and preference.
*
* <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>
...
...
@@ -1035,7 +1035,7 @@ public class Filler {
* @param author the specified author
* @param preference the specified preference
* @throws ServiceException service exception
* @see #setArticleExProperties(
org.json.JSONObject, org.json.
JSONObject)
* @see #setArticleExProperties(
HttpServletRequest, JSONObject, JSONObject,
JSONObject)
*/
public
void
setArticlesExProperties
(
final
HttpServletRequest
request
,
final
List
<
JSONObject
>
articles
,
final
JSONObject
author
,
final
JSONObject
preference
)
...
...
@@ -1049,7 +1049,7 @@ public class Filler {
* Sets some extra properties into the specified article with the specified preference.
*
* <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>
...
...
@@ -1067,7 +1067,7 @@ public class Filler {
* @param articles the specified articles
* @param preference the specified preference
* @throws ServiceException service exception
* @see #setArticleExProperties(
org.json.JSONObject, org.json.
JSONObject)
* @see #setArticleExProperties(
HttpServletRequest, JSONObject,
JSONObject)
*/
public
void
setArticlesExProperties
(
final
HttpServletRequest
request
,
final
List
<
JSONObject
>
articles
,
final
JSONObject
preference
)
...
...
src/main/java/org/b3log/solo/service/ArticleQueryService.java
View file @
afda6b2b
...
...
@@ -544,9 +544,6 @@ public class ArticleQueryService {
article
.
put
(
ARTICLE_CREATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_CREATE_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
for
(
int
j
=
0
;
j
<
excludes
.
length
();
j
++)
{
article
.
remove
(
excludes
.
optString
(
j
));
...
...
@@ -609,9 +606,6 @@ public class ArticleQueryService {
article
.
put
(
ARTICLE_CREATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_CREATE_DATE
)).
getTime
());
// Markdown to HTML for content and abstract
markdown
(
article
);
ret
.
add
(
article
);
}
...
...
@@ -915,9 +909,6 @@ public class ArticleQueryService {
article
.
put
(
ARTICLE_CREATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_CREATE_DATE
)).
getTime
());
// Markdown to HTML for content and abstract
markdown
(
article
);
ret
.
add
(
article
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment