0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/frontend/pretty-text
Renato Atilio 1cd80e702a
FIX: clean up onebox loading decorations on fetch failure (#39277)
When a onebox fetch fails (e.g. 404), the oneboxer never calls
`onResolve`, so the ProseMirror plugin's promise hangs forever and the
`onebox-loading` decoration is never cleaned up — leaving a permanently
pulsing animation on the link.

Calls `onResolve(null)` in the oneboxer failure path so the promise
resolves

Preserves `onResolve` in the 429 rate-limit re-queue (was silently
dropped)

Removes stale loading decorations when full onebox fetch fails

Adds missing `.catch()` for inline onebox batch requests
2026-07-23 19:50:41 -03:00
..
addon FIX: clean up onebox loading decorations on fetch failure (#39277) 2026-07-23 19:50:41 -03:00
app
.npmrc
package.json