mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 22:39:36 +08:00
a34711c23a
When editing a post we were incorrectly saving a draft prior to user typing This caused a bloat in the amount of drafts saved per user and inconsistency around behavior of "escape" button. It also lead to lots of warnings about draft conflicts when copying stuff between posts. The code is improved to use promises more appropriately, however further changes are needed to clean up internals so methods consistently return promises. Too many methods in the controller sometimes return a promise and sometimes an object. Long term the methods will become async and all of this will be corrected. |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |