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
d36467b6
Commit
d36467b6
authored
Nov 17, 2016
by
D
Committed by
GitHub
Nov 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12217 from b3log/master
rebase
parents
de2835f2
c5ea8598
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/main/java/org/b3log/solo/processor/ArticleProcessor.java
src/main/java/org/b3log/solo/processor/ArticleProcessor.java
+6
-1
src/main/java/org/b3log/solo/service/ArticleQueryService.java
...main/java/org/b3log/solo/service/ArticleQueryService.java
+2
-1
No files found.
src/main/java/org/b3log/solo/processor/ArticleProcessor.java
View file @
d36467b6
...
@@ -813,6 +813,11 @@ public class ArticleProcessor {
...
@@ -813,6 +813,11 @@ public class ArticleProcessor {
final
JSONObject
author
=
articleQueryService
.
getAuthor
(
articles
.
get
(
0
));
final
JSONObject
author
=
articleQueryService
.
getAuthor
(
articles
.
get
(
0
));
filler
.
setArticlesExProperties
(
request
,
articles
,
author
,
preference
);
filler
.
setArticlesExProperties
(
request
,
articles
,
author
,
preference
);
}
else
{
//Add by Zephyr:>
//如果进入setArticlesExProperties方法,方法内部有markdown的过程,而原归档查询已经做了markdown,造成二次解析
//将getArticlesByArchiveDate的MD注释,移到此处。
articleQueryService
.
markdowns
(
articles
);
}
}
sort
(
preference
,
articles
);
sort
(
preference
,
articles
);
...
...
src/main/java/org/b3log/solo/service/ArticleQueryService.java
View file @
d36467b6
...
@@ -669,7 +669,8 @@ public class ArticleQueryService {
...
@@ -669,7 +669,8 @@ 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 to HTML for content and abstract
markdown
(
article
);
//Delete by Zephyr:>在外部进行处理,避免出现重复处理的情况
//markdown(article);
ret
.
add
(
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