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
e4f602dd
Unverified
Commit
e4f602dd
authored
Jan 06, 2020
by
Van
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # src/main/resources/skins/Finding/css/base.css
parents
d7cc7520
819c1c78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/main/java/org/b3log/solo/event/B3ArticleSender.java
src/main/java/org/b3log/solo/event/B3ArticleSender.java
+4
-3
No files found.
src/main/java/org/b3log/solo/event/B3ArticleSender.java
View file @
e4f602dd
...
...
@@ -47,7 +47,7 @@ import org.json.JSONObject;
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="https://hacpai.com/member/armstrong">ArmstrongCN</a>
* @version 1.0.2.2
3, Jan 1
, 2020
* @version 1.0.2.2
4, Jan 5
, 2020
* @since 0.3.1
*/
@Singleton
...
...
@@ -126,8 +126,9 @@ public class B3ArticleSender extends AbstractEventListener<JSONObject> {
final
HttpResponse
response
=
HttpRequest
.
post
(
"https://rhythm.b3log.org/api/article"
).
bodyText
(
requestJSONObject
.
toString
()).
connectionTimeout
(
3000
).
timeout
(
7000
).
trustAllCerts
(
true
).
contentTypeJson
().
header
(
"User-Agent"
,
Solos
.
USER_AGENT
).
send
();
LOGGER
.
log
(
Level
.
INFO
,
"Pushed an article [title={0}] to Rhy, response [{1}]"
,
title
,
response
.
toString
());
response
.
charset
(
"UTF-8"
);
final
JSONObject
result
=
new
JSONObject
(
response
.
bodyText
());
LOGGER
.
log
(
Level
.
INFO
,
"Pushed an article [title="
+
title
+
"] to Rhy, result ["
+
result
.
toString
()
+
"]"
);
}
catch
(
final
Exception
e
)
{
LOGGER
.
log
(
Level
.
ERROR
,
"Pushes an article to Rhy failed: "
+
e
.
getMessage
());
}
...
...
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