Commit 6d237e54 authored by Liang Ding's avatar Liang Ding

🐛 社区同步文章问题

parent 77eccda9
...@@ -49,7 +49,7 @@ import java.util.Date; ...@@ -49,7 +49,7 @@ import java.util.Date;
* Receiving articles and comments from B3log community. Visits <a href="https://hacpai.com/b3log">B3log 构思</a> for more details. * Receiving articles and comments from B3log community. Visits <a href="https://hacpai.com/b3log">B3log 构思</a> for more details.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.0.0.0, Feb 10, 2019 * @version 2.0.1.0, Feb 18, 2019
* @since 0.5.5 * @since 0.5.5
*/ */
@RequestProcessor @RequestProcessor
...@@ -164,7 +164,7 @@ public class B3Receiver { ...@@ -164,7 +164,7 @@ public class B3Receiver {
} }
final JSONObject symArticle = requestJSONObject.optJSONObject(Article.ARTICLE); final JSONObject symArticle = requestJSONObject.optJSONObject(Article.ARTICLE);
final String articleId = symArticle.getString(Keys.OBJECT_ID); final String articleId = symArticle.optString("id");
final JSONObject oldArticle = articleQueryService.getArticleById(articleId); final JSONObject oldArticle = articleQueryService.getArticleById(articleId);
if (null == oldArticle) { if (null == oldArticle) {
final JSONObject article = new JSONObject(). final JSONObject article = new JSONObject().
......
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