Commit 94b3f9a2 authored by Liang Ding's avatar Liang Ding

🎨 配置了端口的话文章不推送社区

parent 693ee27b
...@@ -48,7 +48,7 @@ import org.json.JSONObject; ...@@ -48,7 +48,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/armstrong">ArmstrongCN</a> * @author <a href="https://hacpai.com/member/armstrong">ArmstrongCN</a>
* @version 1.0.2.20, Apr 13, 2019 * @version 1.0.2.21, Dec 24, 2019
* @since 0.3.1 * @since 0.3.1
*/ */
@Singleton @Singleton
...@@ -95,8 +95,8 @@ public class B3ArticleSender extends AbstractEventListener<JSONObject> { ...@@ -95,8 +95,8 @@ public class B3ArticleSender extends AbstractEventListener<JSONObject> {
return; return;
} }
if (StringUtils.containsIgnoreCase(Latkes.getServePath(), ("localhost")) || Strings.isIPv4(Latkes.getServerHost())) { if (StringUtils.containsIgnoreCase(Latkes.getServePath(), ("localhost")) || Strings.isIPv4(Latkes.getServerHost()) || StringUtils.isNotBlank(Latkes.getServerPort())) {
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 a local server [" + Latkes.getServePath() + "], ignored push article [title=" + title + "] to Rhy");
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment