mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 08:23:43 +08:00
1c4d5dae1c
This PR simply moves the call to remove in progress uploads **after** the async markdown resolvers finish resolving. This is specifically for the case when markdown resolvers are async functions, such as in the case of Discourse AI's image caption feature. This ensures that the in progress upload doesn't get removed causing replace text having nothing to replace once the async call is finished. No tests as there currently are no tests for this plugin API function, and it's a little tricky to test, especially with in progress uploads being a private property. |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |