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
1b789c16
Unverified
Commit
1b789c16
authored
Mar 22, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
Fix #12731
parent
b089867e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/main/java/org/b3log/solo/service/CommentMgmtService.java
src/main/java/org/b3log/solo/service/CommentMgmtService.java
+5
-2
No files found.
src/main/java/org/b3log/solo/service/CommentMgmtService.java
View file @
1b789c16
...
@@ -49,7 +49,7 @@ import java.util.Date;
...
@@ -49,7 +49,7 @@ import java.util.Date;
* Comment management service.
* Comment management service.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.3.
3.8, Mar 17
, 2019
* @version 1.3.
4.0, Mar 22
, 2019
* @since 0.3.5
* @since 0.3.5
*/
*/
@Service
@Service
...
@@ -329,7 +329,10 @@ public class CommentMgmtService {
...
@@ -329,7 +329,10 @@ public class CommentMgmtService {
ret
.
put
(
Keys
.
OBJECT_ID
,
commentId
);
ret
.
put
(
Keys
.
OBJECT_ID
,
commentId
);
final
String
commentSharpURL
=
Comment
.
getCommentSharpURLForPage
(
page
,
commentId
);
final
String
commentSharpURL
=
Comment
.
getCommentSharpURLForPage
(
page
,
commentId
);
ret
.
put
(
Comment
.
COMMENT_NAME
,
commentName
);
ret
.
put
(
Comment
.
COMMENT_NAME
,
commentName
);
ret
.
put
(
Comment
.
COMMENT_CONTENT
,
commentContent
);
String
cmtContent
=
Emotions
.
convert
(
commentContent
);
cmtContent
=
Markdowns
.
toHTML
(
cmtContent
);
cmtContent
=
Markdowns
.
clean
(
cmtContent
);
ret
.
put
(
Comment
.
COMMENT_CONTENT
,
cmtContent
);
ret
.
put
(
Comment
.
COMMENT_URL
,
commentURL
);
ret
.
put
(
Comment
.
COMMENT_URL
,
commentURL
);
ret
.
put
(
Comment
.
COMMENT_SHARP_URL
,
commentSharpURL
);
ret
.
put
(
Comment
.
COMMENT_SHARP_URL
,
commentSharpURL
);
...
...
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