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
61ac33fa
Unverified
Commit
61ac33fa
authored
Mar 29, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 3.5.0-dev
parents
e850273f
97eaf2d8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
18 deletions
+15
-18
src/main/java/org/b3log/solo/processor/console/ArticleConsole.java
...java/org/b3log/solo/processor/console/ArticleConsole.java
+3
-3
src/main/java/org/b3log/solo/processor/console/CategoryConsole.java
...ava/org/b3log/solo/processor/console/CategoryConsole.java
+3
-3
src/main/java/org/b3log/solo/processor/console/PageConsole.java
...in/java/org/b3log/solo/processor/console/PageConsole.java
+3
-3
src/main/java/org/b3log/solo/processor/console/PreferenceConsole.java
...a/org/b3log/solo/processor/console/PreferenceConsole.java
+2
-2
src/main/java/org/b3log/solo/processor/console/UserConsole.java
...in/java/org/b3log/solo/processor/console/UserConsole.java
+2
-2
src/main/java/org/b3log/solo/service/CommentMgmtService.java
src/main/java/org/b3log/solo/service/CommentMgmtService.java
+2
-5
No files found.
src/main/java/org/b3log/solo/processor/console/ArticleConsole.java
View file @
61ac33fa
...
@@ -49,7 +49,7 @@ import java.util.stream.Collectors;
...
@@ -49,7 +49,7 @@ import java.util.stream.Collectors;
* Article console request processing.
* Article console request processing.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.2.0.
0, Feb 10
, 2019
* @version 1.2.0.
1, Mar 29
, 2019
* @since 0.4.0
* @since 0.4.0
*/
*/
@Singleton
@Singleton
...
@@ -500,7 +500,7 @@ public class ArticleConsole {
...
@@ -500,7 +500,7 @@ public class ArticleConsole {
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
renderer
.
setJSONObject
(
jsonObject
);
renderer
.
setJSONObject
(
jsonObject
);
jsonObject
.
put
(
Keys
.
MSG
,
e
.
getMessage
(
));
jsonObject
.
put
(
Keys
.
MSG
,
langPropsService
.
get
(
"updateFailLabel"
));
}
}
}
}
...
@@ -558,7 +558,7 @@ public class ArticleConsole {
...
@@ -558,7 +558,7 @@ public class ArticleConsole {
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
renderer
.
setJSONObject
(
jsonObject
);
renderer
.
setJSONObject
(
jsonObject
);
jsonObject
.
put
(
Keys
.
MSG
,
e
.
getMessage
(
));
jsonObject
.
put
(
Keys
.
MSG
,
langPropsService
.
get
(
"updateFailLabel"
));
}
}
}
}
}
}
src/main/java/org/b3log/solo/processor/console/CategoryConsole.java
View file @
61ac33fa
...
@@ -51,7 +51,7 @@ import java.util.Set;
...
@@ -51,7 +51,7 @@ import java.util.Set;
* Category console request processing.
* Category console request processing.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.3.
3, Dec 10, 2018
* @version 1.1.3.
4, Mar 29, 2019
* @since 2.0.0
* @since 2.0.0
*/
*/
@RequestProcessor
@RequestProcessor
...
@@ -347,7 +347,7 @@ public class CategoryConsole {
...
@@ -347,7 +347,7 @@ public class CategoryConsole {
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
renderer
.
setJSONObject
(
jsonObject
);
renderer
.
setJSONObject
(
jsonObject
);
jsonObject
.
put
(
Keys
.
MSG
,
e
.
getMessage
(
));
jsonObject
.
put
(
Keys
.
MSG
,
langPropsService
.
get
(
"updateFailLabel"
));
}
}
}
}
...
@@ -476,7 +476,7 @@ public class CategoryConsole {
...
@@ -476,7 +476,7 @@ public class CategoryConsole {
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
renderer
.
setJSONObject
(
jsonObject
);
renderer
.
setJSONObject
(
jsonObject
);
jsonObject
.
put
(
Keys
.
MSG
,
e
.
getMessage
(
));
jsonObject
.
put
(
Keys
.
MSG
,
langPropsService
.
get
(
"updateFailLabel"
));
}
}
}
}
...
...
src/main/java/org/b3log/solo/processor/console/PageConsole.java
View file @
61ac33fa
...
@@ -42,7 +42,7 @@ import org.json.JSONObject;
...
@@ -42,7 +42,7 @@ import org.json.JSONObject;
* Plugin console request processing.
* Plugin console request processing.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.
9, Dec 11, 2018
* @version 1.0.0.
10, Mar 29, 2019
* @since 0.4.0
* @since 0.4.0
*/
*/
@RequestProcessor
@RequestProcessor
...
@@ -128,7 +128,7 @@ public class PageConsole {
...
@@ -128,7 +128,7 @@ public class PageConsole {
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
renderer
.
setJSONObject
(
jsonObject
);
renderer
.
setJSONObject
(
jsonObject
);
jsonObject
.
put
(
Keys
.
MSG
,
e
.
getMessage
(
));
jsonObject
.
put
(
Keys
.
MSG
,
langPropsService
.
get
(
"updateFailLabel"
));
}
}
}
}
...
@@ -216,7 +216,7 @@ public class PageConsole {
...
@@ -216,7 +216,7 @@ public class PageConsole {
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
renderer
.
setJSONObject
(
jsonObject
);
renderer
.
setJSONObject
(
jsonObject
);
jsonObject
.
put
(
Keys
.
MSG
,
e
.
getMessage
(
));
jsonObject
.
put
(
Keys
.
MSG
,
langPropsService
.
get
(
"updateFailLabel"
));
}
}
}
}
...
...
src/main/java/org/b3log/solo/processor/console/PreferenceConsole.java
View file @
61ac33fa
...
@@ -44,7 +44,7 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -44,7 +44,7 @@ import javax.servlet.http.HttpServletResponse;
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="https://github.com/hzchendou">hzchendou</a>
* @author <a href="https://github.com/hzchendou">hzchendou</a>
* @version 1.2.0.2
3, Mar 1
9, 2019
* @version 1.2.0.2
4, Mar 2
9, 2019
* @since 0.4.0
* @since 0.4.0
*/
*/
@RequestProcessor
@RequestProcessor
...
@@ -284,7 +284,7 @@ public class PreferenceConsole {
...
@@ -284,7 +284,7 @@ public class PreferenceConsole {
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
renderer
.
setJSONObject
(
jsonObject
);
renderer
.
setJSONObject
(
jsonObject
);
jsonObject
.
put
(
Keys
.
MSG
,
e
.
getMessage
(
));
jsonObject
.
put
(
Keys
.
MSG
,
langPropsService
.
get
(
"updateFailLabel"
));
}
}
}
}
...
...
src/main/java/org/b3log/solo/processor/console/UserConsole.java
View file @
61ac33fa
...
@@ -41,7 +41,7 @@ import org.json.JSONObject;
...
@@ -41,7 +41,7 @@ import org.json.JSONObject;
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="https://hacpai.com/member/DASHU">DASHU</a>
* @author <a href="https://hacpai.com/member/DASHU">DASHU</a>
* @version 1.2.1.
6, Feb 8
, 2019
* @version 1.2.1.
7, Mar 29
, 2019
* @since 0.4.0
* @since 0.4.0
*/
*/
@RequestProcessor
@RequestProcessor
...
@@ -116,7 +116,7 @@ public class UserConsole {
...
@@ -116,7 +116,7 @@ public class UserConsole {
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
final
JSONObject
jsonObject
=
new
JSONObject
().
put
(
Keys
.
STATUS_CODE
,
false
);
renderer
.
setJSONObject
(
jsonObject
);
renderer
.
setJSONObject
(
jsonObject
);
jsonObject
.
put
(
Keys
.
MSG
,
e
.
getMessage
(
));
jsonObject
.
put
(
Keys
.
MSG
,
langPropsService
.
get
(
"updateFailLabel"
));
}
}
}
}
...
...
src/main/java/org/b3log/solo/service/CommentMgmtService.java
View file @
61ac33fa
...
@@ -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.4.
0, Mar 22
, 2019
* @version 1.3.4.
1, Mar 29
, 2019
* @since 0.3.5
* @since 0.3.5
*/
*/
@Service
@Service
...
@@ -208,10 +208,7 @@ public class CommentMgmtService {
...
@@ -208,10 +208,7 @@ public class CommentMgmtService {
final
String
commentURL
=
requestJSONObject
.
optString
(
Comment
.
COMMENT_URL
);
final
String
commentURL
=
requestJSONObject
.
optString
(
Comment
.
COMMENT_URL
);
if
(!
Strings
.
isURL
(
commentURL
)
||
StringUtils
.
contains
(
commentURL
,
"<"
))
{
if
(!
Strings
.
isURL
(
commentURL
)
||
StringUtils
.
contains
(
commentURL
,
"<"
))
{
LOGGER
.
log
(
Level
.
WARN
,
"Comment URL is invalid [{0}]"
,
commentURL
);
requestJSONObject
.
put
(
Comment
.
COMMENT_URL
,
""
);
ret
.
put
(
Keys
.
MSG
,
langPropsService
.
get
(
"urlInvalidLabel"
));
return
ret
;
}
}
String
commentContent
=
requestJSONObject
.
optString
(
Comment
.
COMMENT_CONTENT
);
String
commentContent
=
requestJSONObject
.
optString
(
Comment
.
COMMENT_CONTENT
);
...
...
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