mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 13:19:19 +08:00
Hashtags, mentions and oneboxes resolve asynchronously, and their transactions were dispatched as if the user had made an edit. Since serializing rewrites the whole document, opening a post with a valid hashtag, an invalid mention or a onebox committed round-trip differences from anywhere in it: the composer went dirty untouched, a draft was saved, and saving produced a revision of pure normalization. None of these are edits the user made or can undo, so they now dispatch with `addToHistory: false`, which the editor already treats as "not the user's content" and skips the serialization for. A onebox preview no longer normalizes the whitespace around the URL it replaces, which cooks the same either way. |
||
|---|---|---|
| .. | ||
| category_templates_spec.rb | ||
| default_to_subcategory_spec.rb | ||
| dont_feed_the_trolls_popup_spec.rb | ||
| drafts_spec.rb | ||
| enqueued_post_draft_spec.rb | ||
| form_template_tag_chooser_spec.rb | ||
| post_validation_spec.rb | ||
| prosemirror_autocomplete_spec.rb | ||
| prosemirror_code_spec.rb | ||
| prosemirror_container_spec.rb | ||
| prosemirror_images_spec.rb | ||
| prosemirror_input_rules_spec.rb | ||
| prosemirror_keymap_spec.rb | ||
| prosemirror_links_spec.rb | ||
| prosemirror_onebox_spec.rb | ||
| prosemirror_onebox_toolbar_spec.rb | ||
| prosemirror_pasting_spec.rb | ||
| prosemirror_quotes_spec.rb | ||
| prosemirror_toolbar_spec.rb | ||
| prosemirror_uploads_spec.rb | ||
| prosemirror_watched_words_spec.rb | ||
| prosemirror_wrap_spec.rb | ||
| redesign_spec.rb | ||
| review_media_unless_trust_level_spec.rb | ||
| template_validation_spec.rb | ||