Last modified: 2014-03-21 23:41:24 UTC
After submitting an action via JS, the api request responds with rendered HTML, which JS then replaces the old HTML with. However, loadRequestedRevision (in Topic.php) doesn't load the full tree here, but only the post & root post (= topic). So, no children. It replaces the post and all of it's child replies, by just the new post HTML (without child replies) Either we make sure loadRequestedRevision always loads the full tree, or we change JS to make sure only the post (and no children) are replaces (a little tricky because they're nested inside the post's DOM)
The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/646, but people from the community are welcome to contribute here and in Gerrit.
Change 104910 had a related patch set uploaded by Werdna: When executing an action on a post, just replace the .flow-post, not the whole .flow-post-container. https://gerrit.wikimedia.org/r/104910
Change 104910 merged by jenkins-bot: When executing an action on a post, just replace the .flow-post, not the whole .flow-post-container. https://gerrit.wikimedia.org/r/104910