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
02375a01
Commit
02375a01
authored
Nov 17, 2016
by
D
Committed by
GitHub
Nov 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12218 from b3log/1.8.0-dev
1.8.0 dev
parents
c5ea8598
51568eec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
src/main/java/org/b3log/solo/processor/ArticleProcessor.java
src/main/java/org/b3log/solo/processor/ArticleProcessor.java
+3
-7
src/main/java/org/b3log/solo/service/ArticleQueryService.java
...main/java/org/b3log/solo/service/ArticleQueryService.java
+2
-5
No files found.
src/main/java/org/b3log/solo/processor/ArticleProcessor.java
View file @
02375a01
...
...
@@ -68,7 +68,8 @@ import org.jsoup.Jsoup;
* Article processor.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.4.2.15, Nov 20, 2015
* @author <a href="http://zephyr.b3log.org">Zephyr</a>
* @version 1.4.2.16, Nov 17, 2016
* @since 0.3.1
*/
@RequestProcessor
...
...
@@ -813,13 +814,8 @@ public class ArticleProcessor {
final
JSONObject
author
=
articleQueryService
.
getAuthor
(
articles
.
get
(
0
));
filler
.
setArticlesExProperties
(
request
,
articles
,
author
,
preference
);
}
else
{
//Add by Zephyr:>
//如果进入setArticlesExProperties方法,方法内部有markdown的过程,而原归档查询已经做了markdown,造成二次解析
//将getArticlesByArchiveDate的MD注释,移到此处。
articleQueryService
.
markdowns
(
articles
);
}
sort
(
preference
,
articles
);
final
Map
<
String
,
Object
>
dataModel
=
renderer
.
getDataModel
();
...
...
src/main/java/org/b3log/solo/service/ArticleQueryService.java
View file @
02375a01
...
...
@@ -63,7 +63,8 @@ import org.json.JSONObject;
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://blog.sweelia.com">ArmstrongCN</a>
* @version 1.1.2.4, Nov 20, 2015
* @author <a href="http://zephyr.b3log.org">Zephyr</a>
* @version 1.1.3.4, Nov 17, 2016
* @since 0.3.5
*/
@Service
...
...
@@ -668,10 +669,6 @@ public class ArticleQueryService {
article
.
put
(
ARTICLE_CREATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_CREATE_DATE
)).
getTime
());
// Markdown to HTML for content and abstract
//Delete by Zephyr:>在外部进行处理,避免出现重复处理的情况
//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