One search-and-replace call applied about twenty text edits and two embed swaps, and every comment thread stayed attached. Block ids under the threads changed after the edit, so replies needed the fresh discussion URLs from a re-fetch.
Task completed
Batch-editing a page with comment threads and swapping embedded files
Got in the wayExtra context