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
73636485
Unverified
Commit
73636485
authored
Mar 30, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
使用 IP 时不同步 B3
parent
66b5b4ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
src/main/java/org/b3log/solo/event/B3ArticleSender.java
src/main/java/org/b3log/solo/event/B3ArticleSender.java
+1
-1
src/main/java/org/b3log/solo/event/B3CommentSender.java
src/main/java/org/b3log/solo/event/B3CommentSender.java
+1
-1
src/main/java/org/b3log/solo/service/ExportService.java
src/main/java/org/b3log/solo/service/ExportService.java
+4
-0
No files found.
src/main/java/org/b3log/solo/event/B3ArticleSender.java
View file @
73636485
...
@@ -95,7 +95,7 @@ public class B3ArticleSender extends AbstractEventListener<JSONObject> {
...
@@ -95,7 +95,7 @@ public class B3ArticleSender extends AbstractEventListener<JSONObject> {
return
;
return
;
}
}
if
(
Latkes
.
getServePath
().
contains
(
"localhost"
)
||
Strings
.
isIPv4
(
Latkes
.
getServe
Path
()))
{
if
(
Latkes
.
getServePath
().
contains
(
"localhost"
)
||
Strings
.
isIPv4
(
Latkes
.
getServe
rHost
()))
{
LOGGER
.
log
(
Level
.
INFO
,
"Solo is running on local server, ignored push article [title={0}] to Rhy"
,
title
);
LOGGER
.
log
(
Level
.
INFO
,
"Solo is running on local server, ignored push article [title={0}] to Rhy"
,
title
);
return
;
return
;
...
...
src/main/java/org/b3log/solo/event/B3CommentSender.java
View file @
73636485
...
@@ -88,7 +88,7 @@ public class B3CommentSender extends AbstractEventListener<JSONObject> {
...
@@ -88,7 +88,7 @@ public class B3CommentSender extends AbstractEventListener<JSONObject> {
return
;
return
;
}
}
if
(
Latkes
.
getServePath
().
contains
(
"localhost"
)
||
Strings
.
isIPv4
(
Latkes
.
getServe
Path
()))
{
if
(
Latkes
.
getServePath
().
contains
(
"localhost"
)
||
Strings
.
isIPv4
(
Latkes
.
getServe
rHost
()))
{
LOGGER
.
log
(
Level
.
TRACE
,
"Solo runs on local server, so should not send this comment[id={0}] to Symphony"
,
LOGGER
.
log
(
Level
.
TRACE
,
"Solo runs on local server, so should not send this comment[id={0}] to Symphony"
,
originalComment
.
getString
(
Keys
.
OBJECT_ID
));
originalComment
.
getString
(
Keys
.
OBJECT_ID
));
return
;
return
;
...
...
src/main/java/org/b3log/solo/service/ExportService.java
View file @
73636485
...
@@ -162,6 +162,10 @@ public class ExportService {
...
@@ -162,6 +162,10 @@ public class ExportService {
return
;
return
;
}
}
if
(
Latkes
.
getServePath
().
contains
(
"localhost"
)
||
Strings
.
isIPv4
(
Latkes
.
getServerHost
()))
{
return
;
}
if
(
Latkes
.
RuntimeMode
.
PRODUCTION
!=
Latkes
.
getRuntimeMode
())
{
if
(
Latkes
.
RuntimeMode
.
PRODUCTION
!=
Latkes
.
getRuntimeMode
())
{
return
;
return
;
}
}
...
...
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