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/addon
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
..
emoji DEV: Auto-generate emojiReplacementRegex from emoji database (#38491) 2026-03-16 14:32:57 +01:00
allow-lister.js FEATURE: Add PR status icon to inline oneboxes (#39649) 2026-05-04 18:15:14 +02:00
censored-words.js
emoji.js DEV: Make imports in pretty-text easier for rolldown to handle (#38830) 2026-03-24 17:52:16 +01:00
guid.js
inline-oneboxer.js FEATURE: Add PR status icon to inline oneboxes (#39649) 2026-05-04 18:15:14 +02:00
mentions.js
oneboxer-cache.js
oneboxer.js FIX: clean up onebox loading decorations on fetch failure (#39277) 2026-07-23 19:50:41 -03:00
pretty-text.js DEV: Remove dropFrom parameter from deprecations (#38656) 2026-03-17 11:10:12 +00:00
sanitizer.js SECURITY: Disallow URL-encoded path traversal in iframe URLs 2026-03-19 15:21:28 +00:00
text-replace.js
upload-short-url.js DEV: Handle missing urls in prosemirror/image (#39163) 2026-04-08 23:35:04 +02:00