Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
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-1
Commits
661787f0
Commit
661787f0
authored
Nov 20, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
Clean code
parent
90299107
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
src/main/java/org/b3log/solo/service/ArticleMgmtService.java
src/main/java/org/b3log/solo/service/ArticleMgmtService.java
+0
-3
No files found.
src/main/java/org/b3log/solo/service/ArticleMgmtService.java
View file @
661787f0
...
@@ -473,7 +473,6 @@ public class ArticleMgmtService {
...
@@ -473,7 +473,6 @@ public class ArticleMgmtService {
article
.
put
(
Article
.
ARTICLE_TAGS_REF
,
tagsString
);
article
.
put
(
Article
.
ARTICLE_TAGS_REF
,
tagsString
);
final
String
[]
tagTitles
=
tagsString
.
split
(
","
);
final
String
[]
tagTitles
=
tagsString
.
split
(
","
);
final
JSONArray
tags
=
tag
(
tagTitles
,
article
);
final
JSONArray
tags
=
tag
(
tagTitles
,
article
);
// Step 2; Set comment/view count to 0
// Step 2; Set comment/view count to 0
article
.
put
(
Article
.
ARTICLE_COMMENT_COUNT
,
0
);
article
.
put
(
Article
.
ARTICLE_COMMENT_COUNT
,
0
);
article
.
put
(
Article
.
ARTICLE_VIEW_COUNT
,
0
);
article
.
put
(
Article
.
ARTICLE_VIEW_COUNT
,
0
);
...
@@ -498,11 +497,9 @@ public class ArticleMgmtService {
...
@@ -498,11 +497,9 @@ public class ArticleMgmtService {
archiveDate
(
article
);
archiveDate
(
article
);
// Step 8: Set permalink
// Step 8: Set permalink
final
String
permalink
=
getPermalinkForAddArticle
(
article
);
final
String
permalink
=
getPermalinkForAddArticle
(
article
);
article
.
put
(
Article
.
ARTICLE_PERMALINK
,
permalink
);
article
.
put
(
Article
.
ARTICLE_PERMALINK
,
permalink
);
// Step 9: Add article sign id
// Step 9: Add article sign id
final
String
signId
=
article
.
optString
(
Article
.
ARTICLE_SIGN_ID
,
"1"
);
final
String
signId
=
article
.
optString
(
Article
.
ARTICLE_SIGN_ID
,
"1"
);
article
.
put
(
Article
.
ARTICLE_SIGN_ID
,
signId
);
article
.
put
(
Article
.
ARTICLE_SIGN_ID
,
signId
);
// Step 10: Set had been published status
// Step 10: Set had been published status
article
.
put
(
Article
.
ARTICLE_HAD_BEEN_PUBLISHED
,
false
);
article
.
put
(
Article
.
ARTICLE_HAD_BEEN_PUBLISHED
,
false
);
...
...
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