Make quoting other posts work offline

Currently, writing a post generally works very well even with bad or no connectivity, because the markdown preview is computed locally. There is one exception though: When I select some text in the thread and click “Quote” while my connection is down (as it is right now as the train races through sparsely inhabited countryside), nothing happens. No feedback that it is waiting for something, and no quote.

It would be great if quoting text could be done offline; that would greatly improve the experience of writing a long post on a long train ride with intermittent connectivity.

11 Likes

This is a good suggestion @zogstrip

4 Likes

@nbianca can you check why we aren’t allowed to quote a post (while having the composer already opened)? We have all the required information (username, post number and topic id) on the client-side.

2 Likes

Oh no, if this is the case this is a release blocker to me @zogstrip … we can’t be doing network requests on simple quote.

I can definitely repro. Switched to “offline” mode in f12 console and then initiated a quote reply.

Not sure what a request for https://meta.discourse.org/posts/464453?_=1559948218472 is really doing though.

Also this does not happen on pressing the reply button so it is definitely specific to quote initiated replies.

4 Likes

This was fixed in:

https://github.com/discourse/discourse/pull/7737

6 Likes