mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 13:46:40 +08:00

When `SiteSetting.embed_truncate` is enabled (by default), the truncated string is mutatable and does not raise an error. However, when the setting is disabled, the `contents` string is frozen and immutable, and will raise a `FrozenError`.