Files
discourse/lib
Régis Hanol 20d46c9583 PERF: only diff HTML / Markdown when needed (#30014)
When serializing the `body_changes` in the `PostRevisionSerializer`, we create two diffs: one for the `cooked` and another one for the `raw` version of the post.

Inside `DiscourseDiff`, we generate both `html` and `markdown` diffs when we only need the `html` diffs for the `cooked` version of the post and the `markdown` diff for the `raw` version of the post.

This solves the issue repored in https://meta.discourse.org/t/server-error-accessing-topic-revisions-on-a-specific-topic/339185 where some revisions would return 500 because of a `ArgumentError : Attributes per element limit exceeded` exception when trying to generate the `html` diff on a very large `raw`.
2024-11-30 16:30:30 +01:00
..
2022-04-28 11:51:03 +02:00
2024-08-12 10:41:13 +02:00
2024-11-19 12:01:07 +01:00
2024-11-06 06:27:49 +08:00
2023-02-21 10:30:48 +01:00
2024-07-04 10:58:21 +02:00
2020-07-21 15:55:03 +08:00