FIX: Always reload post's raw when editing a post (PR #14085)

Sometimes the message bus update can be delayed and editing a post when that happens will automatically result in a draft conflict.

GitHub

This pull request introduces 1 alert when merging a585da93349050d1443113d49cfffd7b2d936b6c into ded6a4a0eac3ad81efde9e15b7dd3c9720d665b5 - view on LGTM.com

new alerts:

  • 1 for Assignment to constant

Sometimes the message bus update can be delayed

I have a clarification to make. If we’re always reaching for the store when editing a post, does the message_bus message still serve a purpose?

Yes, the message_bus message still serves a purpose because it notifies all clients that the post was revised. It is client’s job to refresh the post.