סנכרון ספירת תגובות

סיכום מבוסס בינה מלאכותית

jtbayly is experiencing issues with comment count synchronization between WordPress and Discourse. Despite successful webhook logs, the comment count in WordPress remains at zero even after comments are posted in Discourse. angus clarifies the setup and asks for clarification on expected behavior. jtbayly simplifies the issue, stating that the comment count isn’t increasing from zero. angus confirms the Sync Comment Data webhook is set up and suggests enabling verbose logging. jtbayly provides an example where the sync was successful but the comment count still shows zero. angus requests a link to an example post. After reviewing the example, angus explains that the current settings filter comments, affecting the display of the comment count. angus suggests changing the settings to display a link to the comments and disabling the moderator-liked filter. jtbayly confirms the solution works but expresses confusion about the initial assumptions. angus clarifies that displaying both the total comment count and selected replies requires a custom setup not supported out of the box, offering to revisit the issue when jtbayly is ready to implement it.

I’m having trouble that I assume is related to these errors in the WP-Discourse log:

[2025-08-14 20:28:35] comment.ERROR: sync_comments.response_error {"message":"","discourse_topic_id":"2464","wp_post_id":20434,"http_code":""}
[2025-08-14 20:36:04] comment.ERROR: sync_comments.response_error {"message":"","discourse_topic_id":"727","wp_post_id":12097,"http_code":""}

But there is no message about why it failed to sync, so I’m not sure what to do to debug this.

I just left a comment myself and I see this in the log:

[2025-08-15 18:44:39] comment.INFO: sync_comments.success {"post_id":22491}

That post now shows correctly that there is one comment up at the top of the page in the meta-data.

However, at the bottom of the page it still says “Start the discussion at …” instead of “Join the discussion” even though there is a comment now.

Anybody have any suggestions?

I do have “Only Import Moderator-Liked” selected, but I believe that should only affect which comments are displayed, not the wording or the comment count, correct?

היי @jtbayly, תודה על הדיווח. אני מנסה להבין מה אתה רואה כבעיה כאן. הנה מה שנראה כמצב העניינים בהתבסס על מה שאמרת:

  1. פרסום פוסטים מוורדפרס לדיסקרוס עובד כראוי.
  2. הגדרת את ה-Webhook של סנכרון נתוני תגובות (האם זה נכון?).
  3. הפעלת את האפשרות “ייבוא תגובות שאהבו מנהלים בלבד”.
  4. אתה רואה שגיאות סנכרון תגובות בלוגים.
  5. כשאתה מגיב לפוסט שפורסם מוורדפרס בדיסקרוס, אתה רואה את ספירת התגובות עולה, אך אינך רואה את הפוסט מופיע בוורדפרס.

אם תתעלם לרגע מהלוגים, תוכל להסביר מה אתה מצפה שיקרה וכיצד המצב הנוכחי סוטה מהציפיות שלך.

מצטער, כנראה סיבכתי את ההודעה האחרונה שלי עם פרטים.

באופן כללי, ספירת התגובות לא נראית עולה מ-0. אני לא באמת מציג שום תגובות ב-WP.

I see! Do you have the Sync Comment Data webhook setup?

כן, אני כן. והפעלתי את “יומני Webhook מפורטים” ב-WP-Discourse. באופן מעניין, מאז שהפעלתי אותם, לא היו לי כשלים ביומנים, אבל זה עדיין לא עובד. הנה הרשומה האחרונה:

[2025-08-19 00:01:11] comment.INFO: sync_comments.success {"post_id":30298} 

עם זאת, קח את הפוסט הזה כדוגמה. פוסט 30298 ב-WP מכיל:

  1. פורסם ל-Discourse באופן אוטומטי על ידי WP-Discourse, ובכך יצר נושא עבורו.
  2. ב-Discourse, נוצר פוסט תחת אותו נושא.
  3. נתוני התגובה נשלחו ל-WP מ-Discourse באמצעות Webhook, ו-WP-Discourse רשם שהוא התקבל בהצלחה.
  4. בין אם מחובר לחשבון ובין אם לא, בין אם ניקה מטמון ובין אם לא, פוסט 30298 ב-WP מדווח על אפס תגובות.

מחשבות?

האם תוכל לקשר אותי לדוגמה של פוסט שבו הלוגים מציינים שהסנכרון של ההערות הצליח?

רק הערה ש-@jtbayly שיתף איתי דוגמה בח

תודה על עזרתך, @angus. אכן נראה ששינוי ההגדרות האלה פתר את הבעיה. אני מניח שהייתי מבולבל.

כך הנחתי שזה עובד:

  1. תגובות שיובאו יוצגו תחת הפוסט ב-WP.
  2. ספירת התגובות תכלול את כל התשובות לנושא ב-Discourse.

בחרתי בכך כי בסופו של דבר קיוויתי להגיע להצגת התגובות שאושרו על ידי המוד מתחת לפוסטים. אבל אני מניח שזה לא אפשרי יחד עם הצגת המספר הכולל של התשובות לנושא?

Hey @jtbayly, just to close the circle on this, it sounds like essentially what you want is both

  • a total count, e.g. “45 total replies”; and
  • selected replies appearing e.g. 3 mod-like replies,

to appear at once. That is indeed a custom setup that is not supported out of the box. But we could make a version of that work. To recap:

a total count, e.g. “45 total replies”

This will work out of the box, as discussed.

When you get to that stage, create a new topic in Support > WordPress and we can figure it out based on your needs then.