בעיות עם תגובות חוזרות בלחיצה על כפתור expand

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

A discussion on Discourse’s meta forum addresses an issue where repeatedly clicking the “expand reply” button can cause multiple identical replies to appear, particularly under network latency. TethysPlex first reports the bug, noting it affects users with slow connections, and suggests disabling the button during loading or using a replace method instead of appending. chapoi confirms the issue and demonstrates it with a video. tobiaseigen initially cannot reproduce it but later acknowledges the behavior under rapid clicking. The issue is marked as low priority but accepted for a fix. TethysPlex submits a pull request, which is reviewed and merged by kelv, with the topic tagged as pr-welcome to encourage contributions TethysPlex.

![PixPin_2025-09-11_17-32-00|

2 לייקים

יש עדכונים בנוגע לסוגיה זו?

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

I can, just repro’ed here on meta

Moving this to bug

2 לייקים

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

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

אה, אוקיי. אני יכול לאשר שביצוע הפעולה הזו אינו משכפל עבורי את הפריטים. אני משתמש ב-Chrome גרסה 140.0.7339.133 (Official Build) (arm64) על OSX.

Doesn’t immediately trigger but can repro consistently when doing it long enough

I would say it’s very low priority though, as at this point it’s almost intentionally trying to break the site.

I’ll leave it up to you whether we close with a wont-fix or not.

לייק 1

בקהילה שלי, עקב השהיית רשת משמעותית, משתמשים רבים מנסים ללחוץ על כפתור הרחבת התגובה מספר פעמים.

אולי השבתת הכפתור בזמן הטעינה, או שימוש ב-replace במקום append לרשימת התגובות?

  • השהיית רשת היא פונקציה של מספר גורמים, כולל Cloudflare, מיקום המשתמש וגודל הקהילה.
2 לייקים

Thats a better approach in general imo :+1:t2:

לייק 1

Thanks for the clarification, but I’d like to know whether Discourse accepts pull requests aimed at fixing this issue.

לייק 1

Oh absolutely, we are very appreciative of any contributions! I’ve tagged the topic with pr-welcome

לייק 1

Thanks for the clarify, I’ve opened a PR on GitHub for this issue: FIX: Disable replies button until replies are loaded by TethysPlex · Pull Request #35136 · discourse/discourse · GitHub

3 לייקים

Thanks for the PR @TethysPlex ! I’ve left a few comments on the PR in terms of simplifying the code but the overall approach is directionally there :+1:

לייק 1

@TethysPlex Thanks for addressing the comments and your contribution! I’ve approved and merged the PR :slight_smile:

3 לייקים

נושא זה נסגר אוטומטית לאחר 15 שעות. לא ניתן להוסיף תגובות חדשות.